Go to the source code of this file.
|
| namespace | mrpt |
| | This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
|
| |
| namespace | mrpt::synch |
| | This namespace provides multitask, synchronization utilities.
|
| |
|
| #define | THREADSAFE_OPERATION(_CRITSECT_OBJ, CODE_TO_EXECUTE) |
| | A macro for protecting a given piece of code with a critical section; for example:
|
| |
| #define THREADSAFE_OPERATION |
( |
|
_CRITSECT_OBJ, |
|
|
|
CODE_TO_EXECUTE |
|
) |
| |
Value:
A macro for protecting a given piece of code with a critical section; for example:
CCriticalSection cs;
MyObject obj;
...
THREADSAFE_OPERATION(cs, obj.foo(); )
...
- See Also
- CCriticalSectionLocker, CThreadSafeVariable
Definition at line 139 of file CCriticalSection.h.