summaryrefslogtreecommitdiffstats
path: root/src/libthread/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/exit.c')
-rw-r--r--src/libthread/exit.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/libthread/exit.c b/src/libthread/exit.c
deleted file mode 100644
index 69f3f738..00000000
--- a/src/libthread/exit.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <u.h>
-#include <signal.h>
-#include "threadimpl.h"
-
-char *_threadexitsallstatus;
-Channel *_threadwaitchan;
-
-void
-threadexits(char *exitstr)
-{
- Proc *p;
- Thread *t;
-
- p = _threadgetproc();
- t = p->thread;
- if(t == p->idle)
- p->idle = nil;
- t->moribund = 1;
- _threaddebug(DBGSCHED, "threadexits %s", exitstr);
- if(exitstr==nil)
- exitstr="";
- utfecpy(p->exitstr, p->exitstr+ERRMAX, exitstr);
- _sched();
-}
-
-void
-threadexitsall(char *exitstr)
-{
- _threaddebug(DBGSCHED, "threadexitsall %s", exitstr);
- if(exitstr == nil)
- exitstr = "";
- _threadexitsallstatus = exitstr;
- _threaddebug(DBGSCHED, "_threadexitsallstatus set to %p", _threadexitsallstatus);
- /* leave */
- _kthreadexitallproc(exitstr);
-}
-
-Channel*
-threadwaitchan(void)
-{
- if(_threadwaitchan==nil)
- _threadwaitchan = chancreate(sizeof(Waitmsg*), 16);
- return _threadwaitchan;
-}