Table of Contents

Name

qthread_stackleft - returns the amount of space left in the thread’s allocated stack

Synopsis

#include <qthread.h>

size_t
qthread_stackleft (void);

Description

This function returns the number of bytes left in the stack.

Return Value

If run on a qthread, it returns the number of bytes left in the stack, accurate to a small margin (on the order of 10 bytes). Otherwise it returns 0.

See Also

qthread_id(3) , qthread_retloc(3) , qthread_shep(3)


Table of Contents