Sets a thread context.
a0tError a0SetSelfContext( | | | |
| a0tContext | *context | |
| void | *data );
| |
Name | rd/wr | Description |
context | read | Context descriptor. |
data | read | Data to associate with the desciptor. |
This function must be called by all threads willing to have a private context data. It associates the pointer data with the thread context descriptor context. Subsequent calls to a0GetSelfContext() with the same context descriptor will return the data pointer. Each thread returns its own private data for the same context descriptor.
Error Code | Description |
A0Err...Some error occurred. | |
A0ErrOkSuccessful completion. | |
a0NewContext() a0GetSelfContext()