function suspends execution of the calling thread until the target
terminates unless the target
has already terminated.
On return from a successful
call with a non-NULL
argument, the value passed to
by the terminating thread is stored in the location referenced by
returns successfully, the target thread has been terminated.
of multiple simultaneous calls to
specifying the same target thread are undefined.
If the thread calling
is cancelled, then the target thread is not detached.
function is equivalent to the
function except it will return
if target thread does not exit before specified absolute time passes.
A thread that has exited but remains unjoined counts against