Table of Contents

Name

qthread_debuglevel - returns status information from the runtime

Synopsis

#include <qthread.h>

size_t
qthread_debuglevel (const enum introspective_state type);

Description

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.

See Also

qthread_id(3) , qthread_num_shepherds(3) , qthread_retloc(3) , qthread_stackleft(3)


Table of Contents