|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Early initialization of thread_logger shutdown handler for SDOF prevention. More...
#include <kcenon/thread/core/thread_logger.h>
Go to the source code of this file.
Early initialization of thread_logger shutdown handler for SDOF prevention.
This file ensures that the thread_logger's atexit handler is registered as early as possible during program initialization, before any user-defined static objects are constructed. This prevents Static Destruction Order Fiasco (SDOF) by ensuring that is_shutting_down() returns true before any static object destructors run.
The Problem:
The Solution:
Related Issues:
Definition in file thread_logger_init.cpp.