CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::CleanShutdown Class Reference

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().

Detailed Description

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.

Definition at line 178 of file Utils.h.

Constructor & Destructor Documentation

◆ CleanShutdown()

cmlabs::CleanShutdown::CleanShutdown ( )

Default constructor; no side effects.

Definition at line 48 of file Utils.cpp.

References cmlabs::CleanShutdownInstanceCount.

◆ ~CleanShutdown()

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().


The documentation for this class was generated from the following files:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/Utils.h
  • /home/ubuntu/c/partner/psyclone2/CMSDK/src/Utils.cpp