Guard class for using Once safely.
Synopsis
Declared in <bslmt_once.h>
class OnceGuard;
Description
Construct an object of this class before conditionally entering one‐time processing code. Destroy the object when the one‐time code is complete. When used this way, this object will be in an "in‐progress" state during the time that the one‐time code is being executed.
Member Functions
Name |
Description |
|
Create a guard optionally associated with the specified |
|
Destroy this object, completing in‐progress once work if needed. |
If this object is in the "in‐progress" state, call |
|
Enter the associated |
|
Return |
|
If this object is in the "in‐progress" state, call |
|
Set this object to guard the specified |
Created with MrDocs