Waits a slave thread to end.
a0tError a0JoinSlave( | | | |
| a0tThread | *thread, | |
| void | **result );
| |
Name | rd/wr | Description |
thread | write | Address of the slave thread desciptor. |
result | read | Pointer to the result pointer of the tread. |
This function waits a slave thread thread to end and store its result pointer in the address pointed by result. If no result is expected, a NULL pointer may be used. This function blocks the calling thread until the specified slave thread ends.
On return of this function, the variable pointed by result contains the pointer passed by the exiting thread, with the a0ExitThread() function.
Error Code | Description |
A0ErrInvThread The thread descriptor is invalid. | |
A0ErrOkSuccessful completion. | |
a0NewSlave() a0DetachSlave() a0ExitThread()