3 #include <samchon/library/Semaphore.hpp> UniqueAcquire(UniqueAcquire &&obj)
Move Constructor.
UniqueAcquire(Semaphore &semaphore, bool lock=true)
Construct from semaphore.
void release()
Release an admission.
bool locked
Whether the semaphore was acquired by the UniqueLock.
void acquire()
Acquire admission.
Unique acquire from a Semaphore.
~UniqueAcquire()
Default Destructor.
void acquire()
Acquire admission.
void release()
Release an admission.
Semaphore * semaphore
Managed semaphore.