41 ts_windows_only(HANDLE console_handle;);
52 : next_thread_number(1)
54 ts_windows_only(console_handle = GetStdHandle(STD_OUTPUT_HANDLE););
84 if (!thread_unique_number)
thread_local thread_num_t thread_unique_number
The thread unique number
Definition: globals.h:72
std::atomic< thread_num_t > next_thread_number
The next thread number
Definition: globals.h:45
const thread_num_t max_num_threads
The maximum number threads
Definition: globals.h:29
Class stl_allocator.
Definition: allocator.h:16
thread_local void * current_thread
The current thread
Definition: globals.h:76
T * get_current_thread()
Gets the current thread.
Definition: globals.h:95
globals()
Statics the data t.
Definition: globals.h:51
thread_local tstring thread_name
The thread name
Definition: globals.h:68
uint8_t get_thread_number()
Gets the thread number.
Definition: globals.h:82
class globals
Definition: globals.h:34
std::mutex io_mutex
The io mutex
Definition: globals.h:40