Exit the current thread and return the specified status.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

static
void
exit(void* status);

Description

Exit the current thread and return the specified status. If the current thread is not "detached", then a call to join must be made to reclaim any resources used by the thread, and to retrieve the exit status. Note that generally, the preferred method of exiting a thread is to return form the entry point function.

Parameters

Name

Description

status

exit status made available to a joining thread

Created with MrDocs