This class provides support for one time initialization.
More...
#include <OS.hxx>
|
| os_thread_once_t | handle |
| | Private once handle.
|
| |
| void(* | routine )(void) |
| | One time initialization routine.
|
| |
This class provides support for one time initialization.
Definition at line 205 of file OS.hxx.
◆ OSThreadOnce()
| OSThreadOnce::OSThreadOnce |
( |
void(*)(void) |
routine | ) |
|
|
inline |
One time intialization constructor.
- Parameters
-
| routine | method to call once |
Definition at line 211 of file OS.hxx.
◆ ~OSThreadOnce()
| OSThreadOnce::~OSThreadOnce |
( |
| ) |
|
|
inline |
Default Destructor.
Definition at line 226 of file OS.hxx.
◆ once()
| int OSThreadOnce::once |
( |
void |
| ) |
|
|
inline |
call one time intialization routine
- Returns
- 0 upon success
Definition at line 220 of file OS.hxx.
◆ handle
| os_thread_once_t OSThreadOnce::handle |
|
private |
Private once handle.
Definition at line 234 of file OS.hxx.
◆ routine
| void(* OSThreadOnce::routine) (void) |
|
private |
One time initialization routine.
Definition at line 237 of file OS.hxx.
The documentation for this class was generated from the following file: