libhatchet
Loading...
Searching...
No Matches
hxthread.hpp File Reference

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)

Detailed Description

C++ wrappers for POSIX pthreads or C11 threads.h.

Provides hxthread_local, hxmutex, hxunique_lock, hxcondition_variable, and hxthread. For atomics consider <stdatomic.h>.

Function Documentation

◆ hxthread_id()

size_t hxthread_id ( void )
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.