Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
CreateOnlyAtomic Class Reference

This object encapsulates an Atomic, which never gets destroyed. More...

#include <LinkedObject.hxx>

Public Member Functions

Atomicget ()
 

Private Attributes

std::atomic_uint_least8_t isInitialized_
 
uninitialized< Atomicatomic_
 

Detailed Description

This object encapsulates an Atomic, which never gets destroyed.

It is intended to be used only as static object, because we depend on zero initialization at construction time.

Definition at line 47 of file LinkedObject.hxx.

Constructor & Destructor Documentation

◆ CreateOnlyAtomic()

CreateOnlyAtomic::CreateOnlyAtomic ( )
inline

Definition at line 50 of file LinkedObject.hxx.

Member Function Documentation

◆ get()

Atomic * CreateOnlyAtomic::get ( )
inline

Definition at line 57 of file LinkedObject.hxx.

Member Data Documentation

◆ atomic_

uninitialized<Atomic> CreateOnlyAtomic::atomic_
private

Definition at line 68 of file LinkedObject.hxx.

◆ isInitialized_

std::atomic_uint_least8_t CreateOnlyAtomic::isInitialized_
private

Definition at line 67 of file LinkedObject.hxx.


The documentation for this class was generated from the following file: