Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

THREADINFO Struct Reference

#include <mt_gem.h>


Data Fields

long __CDECL(* proc )(void *par)
void * user_stack
unsigned long stacksize
short mode
long res1


Detailed Description

description of a thread, see mt_shel_write() with SWM_THRCREATE mode


Field Documentation

short THREADINFO::mode
 

always set to 0 (reserved)

long __CDECL(* THREADINFO::proc)(void *par)
 

entry point of the thread

long THREADINFO::res1
 

always set to 0 (reserved)

unsigned long THREADINFO::stacksize
 

size of the user stack stacksize has to be specified in each case so that the system can set the stack pointer to the end of the thread. The supervisor stack is set by the system itself; its size cannot be influenced.

void* THREADINFO::user_stack
 

user stack for the thread If user_stack = NULL, then the system creates the stack itself. If the thread terminates then the system releases the stack anyway.


The documentation for this struct was generated from the following file:
Generated on Wed Nov 3 22:42:19 2004 for GEMLIB by  doxygen 1.3.9.1