Returns the context for a specified thread ID.
#include <nks/thread.h> int NXThreadGetContext ( NXThreadId_t tid, NXContext_t *ctx);
(IN) Specifies the target thread ID.
(OUT) Points to the location where the thread's context is returned.
If successful, returns 0; otherwise, returns a nonzero error code:
Decimal
Hex
Constant
Description
9
0x09
NX_EINVAL
The target thread is invalid.
77
0x4D
NX_ESRCH
A parameter is invalid.