|
|
CallbackWaitLock is used to block a thread and unblock it from another thread via callback. More...
#include <ArmarXCore/core/time/CallbackWaitLock.h>
Inheritance diagram for CallbackWaitLock:Public Member Functions | |
| void | call () override |
| CallbackWaitLock () | |
| void | wait () |
| wait blocks the calling thread until CallbackWaitLock::call() is called. | |
Public Member Functions inherited from CallbackReceiver | |
| virtual | ~CallbackReceiver () |
Protected Attributes | |
| bool | called |
| whether call() was called (to prevent race conditions) | |
| std::condition_variable | condWait |
| std::mutex | waitMutex |
CallbackWaitLock is used to block a thread and unblock it from another thread via callback.
When wait() is called, the calling thread is blocked until call() is called from another thread. This is mainly intended as helper for TimeUtil::Sleep(,,,).
| CallbackWaitLock | ( | ) |
|
overridevirtual |
Implements CallbackReceiver.
| void wait | ( | ) |
wait blocks the calling thread until CallbackWaitLock::call() is called.
|
protected |
whether call() was called (to prevent race conditions)
|
protected |
|
protected |