User-Level Native Thread Primitives (GThread) Library White Paper (G06.26+)
User-Level Native Thread Primitives (GThread Library) 03/31/2005
Hewlett-Packard Company--540065-001 Page 46 of 46
where stack_delta or mem_delta and reg_delta are set to 0 to mimic the
previous method of examining StackUsed to determine if an overflow
condition existed at the time GTHREAD_SETJMP_ was last called.
For pre-checking:
GTH_STACK_CHECK_ACTIVE_( GThread_CB cb, int32 stack_delta )
GTH_STACK_CHECK_ACTIVE2_( GThread_CB cb, int32 mem_delta, int32 reg_delta )
where stack_delta or mem_delta and reg_delta are set according to the
user’s estimate of additional stack space required.
Certain clients of the GThread library access the thread control block elements StackOrigin and
StackSize to determine the location and size of the allocated stack for a thread during normal
operation. For TNS/E platforms, rather than directly accessing the thread control block, those
clients requiring this information need to use the following interfaces:
GTH_ALLOCATED_BASE_( GThread_CB cb )
GTH_ALLOCATED_SIZE_( GThread_CB cb )