a0ExitThread()

Terminates the current thread.


Syntax

a0tError a0ExitThread(
void *result );

Arguments

Namerd/wrDescription
result read The result pointer of the thread.

Description

This function asks to the threads kernel to terminate the calling thread, passing in result the pointer of its results. If this thread is a slave one, the function a0JoinSlave() must be used to wait for the result pointer.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0JoinSlave() a0NewSlave() a0DetachSlave()