Guard class for using Once safely. 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.
Synopsis
Declared in <bslmt_once.h>
class OnceGuard;
Member Functions
Name |
Description |
|
Initialize this object to guard the (optionally) specified |
|
Destroy this object. If this object is not in an "in‐progress" state, do nothing. If this object is in an "in‐progress" state and is being destroyed in the course of normal processing, then call |
If this object is in the "in‐progress" state, call |
|
Call |
|
Return |
|
If this object is in the "in‐progress" state, call |
|
Set this object to guard the specified |
Created with MrDocs