Contains information about a context.
#include <nks/thread.h>
typedef struct
{
NXContextState_t ciState;
void (*ciFunc) (void *);
void *ciArg;
int ciPriority;
size_t ciStackSize;
unsigned long ciFlags;
} NXContextInfo_t;
Specifies the state of the context with one of the following flag:
Points to the start function for the context.
Points to the argument to pass to the start function.
Specifies the priority of the context with one of the following flags:
|
Flag |
Value |
Description |
|---|---|---|
|
NX_PRIO_HIGH |
10 |
High priority |
|
NX_PRIO_MED |
5 |
Medium priority |
|
NX_PRIO_LOW |
1 |
Low priority |
NOTE:Because the NetWare® scheduler does not currently support priority, this flag has no effect on NetWare.
Specifies the size of the context stack.
Specifies the context type with one of the following flags:
The NX_CTXSTATE_INIT state is the only state in which the ciFunc and ciArg fields contain valid information.