diff options
author | mtm <mtm@FreeBSD.org> | 2004-10-06 14:23:00 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-10-06 14:23:00 +0000 |
commit | 0a21f474dc2916335177c20f10de96a7a093926e (patch) | |
tree | 3804089a0d0cecc531066dc2a0a074eddea8153b /sys/sys/thr.h | |
parent | 66f574f53756cb0fd20f1dd2790d90850ef49f3c (diff) | |
download | FreeBSD-src-0a21f474dc2916335177c20f10de96a7a093926e.zip FreeBSD-src-0a21f474dc2916335177c20f10de96a7a093926e.tar.gz |
Close a race between a thread exiting and the freeing of it's stack.
After some discussion the best option seems to be to signal the thread's
death from within the kernel. This requires that thr_exit() take an
argument.
Discussed with: davidxu, deischen, marcel
MFC after: 3 days
Diffstat (limited to 'sys/sys/thr.h')
-rw-r--r-- | sys/sys/thr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/thr.h b/sys/sys/thr.h index ea36af3..4be6d66 100644 --- a/sys/sys/thr.h +++ b/sys/sys/thr.h @@ -39,7 +39,7 @@ int thr_create(ucontext_t *ctx, long *id, int flags); int thr_self(long *id); -void thr_exit(void); +void thr_exit(long *state); int thr_kill(long id, int sig); int thr_suspend(const struct timespec *timeout); int thr_wake(long id); |