|
libhatchet
|
Go to the source code of this file.
Classes | |
| class | hxthread_local< T > |
| class | hxmutex |
| class | hxunique_lock |
| class | hxcondition_variable |
| class | hxthread |
Functions | |
| size_t | hxthread_id (void) |
C++ wrappers for POSIX pthreads or C11 threads.h.
Provides hxthread_local, hxmutex, hxunique_lock, hxcondition_variable, and hxthread. For atomics consider <stdatomic.h>.
|
inline |
hxthread_id - Returns the current thread ID.
Returns 0 when threads are disabled. This is used by the profiler and so it tries to be efficient.