gatb.core-API-0.0.0
|
Tool for locally managing synchronization. More...
#include <IThread.hpp>
Public Member Functions | |
LocalSynchronizer (ISynchronizer *ref) | |
~LocalSynchronizer () | |
Tool for locally managing synchronization.
Instances of this class reference a ISynchronizer instance. When created, they lock their referred ISynchronizer and when destroyed, they unlock it.
For instance, it is a convenient way to lock/unlock a ISynchronizer instance in the scope of a statements block (where the LocalSynchronizer instance lives), a particular case being the statements block of a method.
Code sample:
|
inline |
Constructor.
[in] | ref | : the ISynchronizer instance to be controlled. |
|
inline |
Destructor.