diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 19:42:25 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 19:42:25 +0000 |
commit | c84c43b4dd4a0b4fd392f5b5171ce683234649e4 (patch) | |
tree | 03b0926a8faf866bdf224f37e8957ad44a3d760e /sys/kern/kern_synch.c | |
parent | a950c799236bacf77b94096700b5e5489793953c (diff) |
Change threxit() to take a pointer to a pid_t to zero out from the
kernel so that librthread can detect when a thread is completely
done with its stack without need a kqueue. The dying thread moves
itself to a GC list, other threads scan the GC list on pthread_create()
and pthread_join() and free the stack and handle once the thread's
thread id is zeroed.
"get it in" deraadt@, tedu@, cheers by others
Diffstat (limited to 'sys/kern/kern_synch.c')
0 files changed, 0 insertions, 0 deletions