5 #ifndef CNOID_BASE_LAZY_CALLER_H 6 #define CNOID_BASE_LAZY_CALLER_H 8 #include <boost/function.hpp> 22 friend class LazyCallerImpl;
32 LazyCaller(
const boost::function<
void(
void)>&
function,
int priority = PRIORITY_HIGH);
36 void setFunction(
const boost::function<
void(
void)>&
function);
37 void setPriority(
int priority);
44 void setConservative(
bool on);
69 class QueuedCallerImpl;
73 QueuedCallerImpl* impl;
CNOID_EXPORT bool callSynchronously(const boost::function< void()> &function, int priority=LazyCaller::PRIORITY_NORMAL)
CNOID_EXPORT void callLater(const boost::function< void()> &function, int priority=LazyCaller::PRIORITY_NORMAL)
Definition: LazyCaller.h:29
Definition: LazyCaller.h:29
Definition: LazyCaller.h:20
CNOID_EXPORT void callFromMainThread(const boost::function< void()> &function, int priority=LazyCaller::PRIORITY_NORMAL)
Definition: LazyCaller.h:91
Definition: LazyCaller.h:93
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
Definition: LazyCaller.h:71
Definition: LazyCaller.h:92
CNOID_EXPORT bool isRunningInMainThread()
Definition: LazyCaller.cpp:106
bool isPending() const
Definition: LazyCaller.h:46
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
void result_type
Definition: LazyCaller.h:50
Definition: LazyCaller.h:29
void operator()()
Definition: LazyCaller.h:55