Table of Contents
qthread_debuglevel - returns status information from the runtime
#include
<qthread.h>
size_t
qthread_debuglevel (const enum introspective_state type);
This
function is for querying the runtime about itself. The type argument specifies
what information is desired. The valid values of type include:
- STACK_SIZE
- This causes the function to return the size stack, measured in bytes, that
all spawned qthreads receive.
- BUSYNESS
- This causes the function to return
the approximate number of threads available in the run queue of the current
shepherd.
- ACTIVE_SHEPHERDS
- This causes the function to return the number
of shepherds currently active and scheduling threads. This is equivalent
to the function qthread_num_shepherds().
- TOTAL_SHEPHERDS
- This causes the
funciton to return the total number of shepherds that exist, whether active
or inactive.
qthread_id(3)
, qthread_num_shepherds(3)
, qthread_retloc(3)
,
qthread_stackleft(3)
Table of Contents