Stop the thread, waiting for the thread handler to terminate.
@param thread POSIX thread ID.
@returns 0, if successful; otherwise an error number.
See Implementation
Stop the thread, waiting for the thread handler to terminate.
@param thread POSIX thread ID.
@returns 0, if successful; otherwise an error number.