|
LogCabin
|
Lock objects are used to synchronize between the Event::Loop thread and other threads. More...
#include <Loop.h>
Public Member Functions | |
| Lock (Event::Loop &eventLoop) | |
| Constructor. Acquire the lock. | |
| ~Lock () | |
| Destructor. Release the lock. | |
Public Attributes | |
| Event::Loop & | eventLoop |
| Event::Loop to lock. | |
Private Member Functions | |
| Lock (const Lock &) | |
| Lock & | operator= (const Lock &) |
Lock objects are used to synchronize between the Event::Loop thread and other threads.
As long as a Lock object exists the following guarantees are in effect: either (a) the thread is the event loop thread or (b) no other thread has a Lock object and the event loop thread has paused in a safe place (with no event handlers active) waiting for the Lock to be destroyed. Locks may be used recursively.
| LogCabin::Event::Loop::Lock::Lock | ( | Event::Loop & | eventLoop | ) | [explicit] |
| LogCabin::Event::Loop::Lock::Lock | ( | const Lock & | ) | [private] |
Event::Loop to lock.
1.7.6.1