Table of Contents

Name

qthread_shep - returns the qthread’s shepherd ID

Synopsis

#include <qthread/qthread.h>

qthread_shepherd_id_t
qthread_shep(qthread_t *t);

Description

This function returns the shepherd identifier of the qthread t. If t is NULL, the shepherd identifier is looked up using an internal mechanism; usually pthread_getspecific().

Note that

qthread_shep(NULL)

is slightly more efficient than

qthread_shep(qthread_self())

Return Value

This function either returns the ID number of the shepherd of the calling function, or returns NO_SHEPHERD.

See Also

qthread_retloc(3) , qthread_self(3) , qthread_stackleft(3) , qthread_id(3)


Table of Contents