2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
19 .Nd terminate a thread
29 function terminates the calling thread, in a similar way that
31 terminates the calling process.
32 If the calling thread has not been detached, then the exit status information
35 is saved and can be retrieved by the use of the
39 When the thread exits, all signals will be blocked and various
40 destructors and clean up handlers will be called, such as those
43 The act of thread termination does not cause any process-wide resources,
44 such as mutexes and file descriptors to be released.
46 If a thread, other than the thread in which
48 was first invoked returns from its starting routine, it will implicitly
51 and set the return value to be its exit status.
55 function does not return, the calling thread is terminated.
56 .Sh INTERFACE STABILITY