#include <LazyCaller.h>
- Note
- This is not thread safe
◆ result_type
◆ Priority
Enumerator |
---|
HighPriority | |
NormalPriority | |
LowPriority | |
MinimumPriority | |
PRIORITY_HIGH | |
PRIORITY_NORMAL | |
PRIORITY_LOW | |
◆ LazyCaller() [1/3]
LazyCaller::LazyCaller |
( |
| ) |
|
◆ LazyCaller() [2/3]
LazyCaller::LazyCaller |
( |
const std::function< void(void)> & |
function, |
|
|
int |
priority = HighPriority |
|
) |
| |
◆ LazyCaller() [3/3]
◆ ~LazyCaller()
LazyCaller::~LazyCaller |
( |
| ) |
|
|
virtual |
◆ cancel()
void LazyCaller::cancel |
( |
| ) |
|
◆ flush()
void LazyCaller::flush |
( |
| ) |
|
◆ isPending()
bool cnoid::LazyCaller::isPending |
( |
| ) |
const |
|
inline |
◆ operator()()
void cnoid::LazyCaller::operator() |
( |
| ) |
|
|
inline |
Multiple requests before the actual function call is summarized into a single call
◆ setConservative()
void LazyCaller::setConservative |
( |
bool |
on | ) |
|
The function is called once even if the lazy call is requested many times before the function is actually called. If the conservative mode is on, a function call request is ignored if the function previously requested to call is being executing.
◆ setFunction()
void LazyCaller::setFunction |
( |
const std::function< void(void)> & |
function | ) |
|
◆ setPriority()
void LazyCaller::setPriority |
( |
int |
priority | ) |
|
◆ LazyCallerImpl
friend class LazyCallerImpl |
|
friend |
The documentation for this class was generated from the following files: