diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-05-26 12:57:15 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-05-26 12:57:15 -0700 |
commit | 7be88c1bf860f4197e3ffac486515d6f1b38c666 (patch) | |
tree | 71b8316f4b2dd2ba296f9ddfd00fa2735e05dd95 /sysdeps/generic/exit-thread.h | |
parent | 6afb9c0175006c8060928537842364f83df6fc15 (diff) | |
download | glibc-roland/nacl-exit-stacks.zip glibc-roland/nacl-exit-stacks.tar.gz glibc-roland/nacl-exit-stacks.tar.bz2 |
Diffstat (limited to 'sysdeps/generic/exit-thread.h')
-rw-r--r-- | sysdeps/generic/exit-thread.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sysdeps/generic/exit-thread.h b/sysdeps/generic/exit-thread.h index 787029a..d0f1a46 100644 --- a/sysdeps/generic/exit-thread.h +++ b/sysdeps/generic/exit-thread.h @@ -16,12 +16,16 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -/* This causes the current thread to exit, without affecting other - threads in the process if there are any. If there are no other - threads left, then this has the effect of _exit (0). */ +#include <stdbool.h> + +/* This causes the current thread to exit, without affecting other threads + in the process if there are any. If there are no other threads left, + then this has the effect of _exit (0). If DETACHED is true, then the + TCB returned by THREAD_SELF has been reclaimed and must not be examined + or touched. */ static inline void __attribute__ ((noreturn, always_inline, unused)) -__exit_thread (void) +__exit_thread (bool detached) { while (1) asm ("write me!"); |