summaryrefslogtreecommitdiffstats
path: root/sys/sys/thr.h
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-10-06 14:23:00 +0000
committermtm <mtm@FreeBSD.org>2004-10-06 14:23:00 +0000
commit0a21f474dc2916335177c20f10de96a7a093926e (patch)
tree3804089a0d0cecc531066dc2a0a074eddea8153b /sys/sys/thr.h
parent66f574f53756cb0fd20f1dd2790d90850ef49f3c (diff)
downloadFreeBSD-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.h2
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);
OpenPOWER on IntegriCloud