Base Framework
|
Once synchronization object. More...
#include <base/concurrency/Once.h>
Inherits AutomationObject.
Public Member Functions | |
Once () noexcept | |
bool | getToken () |
void | relinquishToken () noexcept |
Once synchronization object.
Once implementation with delayed resource allocation.
|
noexcept |
Initializes the synchronization object.
|
inline |
This method returns true for one thread only and only on the first invocation. All other threads are blocked until relinquishToken() is invoked by the thread for which getToken() returned true. Raises ResourceException if unable to allocate the required resources.
|
noexcept |
Relinquishes the token.