Table of Contents
qthread_id - returns the qthread’s unique ID number
#include
<qthread/qthread.h>
unsigned int
qthread_id(qthread_t *t);
This function returns the unique identifier
associated with the qthread t. This is used mostly for debugging, as the
qthread_t pointer itself is a valid temporally-unique identifier (the qthread_t
structures can be re-used). Unless otherwise configured, the qthread library
assigns thread ids only when they are asked for. Generally they are monotonically
increasing values, but the value can wrap around after UINT_MAX threads.
On success, the thread’s identifying number is returned.
qthread_retloc(3)
, qthread_self(3)
, qthread_shep(3)
, qthread_stackleft(3)
Table of Contents