|
Robot Raconteur Core C++ Library
|
Service object monitor lock notification. More...
#include <Service.h>
Public Member Functions | |
| virtual void | RobotRaconteurMonitorEnter ()=0 |
| Request a thread-exclusive lock without timeout. | |
| virtual void | RobotRaconteurMonitorEnter (int32_t timeout)=0 |
| Request a thread-exclusive lock with timeout. | |
| virtual void | RobotRaconteurMonitorExit ()=0 |
| Release the thread-exclusive monitor lock. | |
Service object monitor lock notification.
Service objects must implement IRobotRaconteurMonitorObject for monitor locking to function. Services call RobotRaconteurMonitorEnter() with an optional timeout to request the lock, and call RobotRaconteurMonitorExit() to release the monitor lock. RobotRaconteurMonitorEnter() should block until a thread-exclusive lock can be established.
|
pure virtual |
Request a thread-exclusive lock without timeout.
May block until lock can be established
|
pure virtual |
Request a thread-exclusive lock with timeout.
May block until lock can be established, up to the specified timeout.
| timeout | Lock request timeout in milliseconds |