1:1 Userland threading stage 4.4/4:
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 24 Feb 2007 14:25:07 +0000 (14:25 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 24 Feb 2007 14:25:07 +0000 (14:25 +0000)
commit70d3d4613c45e76b79f8e4a51cb49f801199c6f3
treeacd4018211a2965cc65e813a418af3f587f2edbf
parentc68800726d28f850d148f36cef728bf237aad32b
1:1 Userland threading stage 4.4/4:

Implement killlwps() and flesh out lwp_exit().  Lwps which have set the
LWP_WEXIT flag will terminate themselves by calling lwp_exit() from
userret().

Reap lwps in a per-CPU taskqueue.  NOTE: Even the last lwp of an exiting
proc will be reaped by the task queue, effectively leaving a BARE proc
to reap in wait4().

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>
sys/kern/kern_exec.c
sys/kern/kern_exit.c
sys/kern/kern_sig.c
sys/platform/pc32/i386/pmap.c
sys/platform/pc32/i386/trap.c
sys/platform/vkernel/i386/trap.c
sys/platform/vkernel/platform/pmap.c
sys/sys/proc.h
sys/sys/signalvar.h