|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
RAII guard whose single static instance triggers global utility cleanup at program exit. More...
#include <Utils.h>
Public Member Functions | |
| CleanShutdown () | |
| Default constructor; no side effects. | |
| ~CleanShutdown () | |
| Destroys all lazily-created global utility maps via ClearUtilsMaps(). | |
RAII guard whose single static instance triggers global utility cleanup at program exit.
Constructing it installs nothing special; its destructor (run during static de-initialization) releases the process-wide maps of named mutexes, semaphores, events and shared-memory handles so the OS objects are not leaked. Users normally never instantiate this themselves.
| cmlabs::CleanShutdown::CleanShutdown | ( | ) |
Default constructor; no side effects.
Definition at line 48 of file Utils.cpp.
References cmlabs::CleanShutdownInstanceCount.
| cmlabs::CleanShutdown::~CleanShutdown | ( | ) |
Destroys all lazily-created global utility maps via ClearUtilsMaps().
Definition at line 52 of file Utils.cpp.
References cmlabs::CleanShutdownInstanceCount, cmlabs::ClearUtilsMaps(), cmlabs::LogSystem::LogSingleton, and cmlabs::ThreadManager::Shutdown().