Class that helps dealing with critical sections within a single execution scope.
More...
|
| Locker (const MCriticalSection &criticalSection) |
| Create a critical section lock with the object given as parameter, and lock the given critical section for the exclusive usage. More...
|
|
| ~Locker () |
| Unlock the critical section and destroy the lock object. More...
|
|
Class that helps dealing with critical sections within a single execution scope.
- See also
- MCriticalSection - critical section class to be used with this locker
-
example in class description for information on how to use it.
Create a critical section lock with the object given as parameter, and lock the given critical section for the exclusive usage.
- Parameters
-
criticalSection | Critical section object to lock from the given thread. |
- See also
- example in class description for information on how to use it.
MCriticalSection::Locker::~Locker |
( |
| ) |
|
|
inline |
Unlock the critical section and destroy the lock object.
Typically done automatically when the lock object goes out of scope.
- See also
- example in class description for information on how to use it.