Locker synchronization primitive.
More...
#include <locker.h>
template<class T>
class CppCommon::Locker< T >
Locker synchronization primitive.
A locker is an object that manages a given synchronization primitive by keeping it always locked (lock in constructor and unlock in destructor).
Thread-safe.
- Examples
- threads_critical_section.cpp, threads_mutex.cpp, threads_spin_lock.cpp, and threads_thread.cpp.
Definition at line 22 of file locker.h.
◆ Locker() [1/3]
Default class constructor.
- Parameters
-
primitive | - Synchronization primitive to manage |
Definition at line 29 of file locker.h.
◆ Locker() [2/3]
◆ Locker() [3/3]
◆ ~Locker()
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: