#include <LazyCaller.h>
- Note
- This is not thread safe
- Todo:
- Make this thread safe so that the function can be called non-main threads
Enumerator |
---|
PRIORITY_HIGH |
|
PRIORITY_NORMAL |
|
PRIORITY_LOW |
|
LazyCaller::LazyCaller |
( |
| ) |
|
LazyCaller::LazyCaller |
( |
const boost::function< void(void)> & |
function, |
|
|
int |
priority = PRIORITY_HIGH |
|
) |
| |
LazyCaller::~LazyCaller |
( |
| ) |
|
|
virtual |
void LazyCaller::cancel |
( |
| ) |
|
void LazyCaller::flush |
( |
| ) |
|
bool cnoid::LazyCaller::isPending |
( |
| ) |
const |
|
inline |
void cnoid::LazyCaller::operator() |
( |
| ) |
|
|
inline |
Multiple requests before the actual function call is summarized into a single call
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, the function is called one before the function is called and finished.
void LazyCaller::setFunction |
( |
const boost::function< void(void)> & |
function | ) |
|
void LazyCaller::setPriority |
( |
int |
priority | ) |
|
friend class LazyCallerImpl |
|
friend |
The documentation for this class was generated from the following files: