Base Framework
|
Exclusive synchronization. More...
#include <base/concurrency/SingleExclusiveSynchronize.h>
Public Member Functions | |
SingleExclusiveSynchronize (const Guard &_guard) | |
~SingleExclusiveSynchronize () noexcept | |
Exclusive synchronization.
This class is used to synchronize executing contexts exclusively with a guard object of your choice.
|
inlineexplicit |
Initializes the synchronization object. Raises ConcurrencyException if the guard has already been locked.
guard | The synchronize able object to be synchronized. |
|
inlinenoexcept |
Releases the lock if not already released and destroys the synchronization object.