Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
OSImpl.cxx
Go to the documentation of this file.
1
34#include "utils/Atomic.hxx"
35
36static Atomic osGlobalAtomic;
37
38extern "C" {
39
41{
42 osGlobalAtomic.lock();
43}
44
46{
47 osGlobalAtomic.unlock();
48}
49
50}
void os_atomic_lock()
Locks a single global Atomic used to guard some OS structures.
Definition OSImpl.cxx:40
void os_atomic_unlock()
Unlocks a single global Atomic used to guard some OS structures.
Definition OSImpl.cxx:45
Lightweight locking class for protecting small critical sections.
Definition Atomic.hxx:130