diff options
| author | rsc <devnull@localhost> | 2004-12-25 21:56:33 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-12-25 21:56:33 +0000 |
| commit | 1544f90960275dc9211bde30329c3258e0e1bf38 (patch) | |
| tree | f55e7a73c03aaa24daa7cc2ad02822b921c477f9 /src/libthread/exit.c | |
| parent | 7788fd54094693384ef5c92c475656dba8819feb (diff) | |
| download | plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.gz plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.zip | |
New thread library
Diffstat (limited to 'src/libthread/exit.c')
| -rw-r--r-- | src/libthread/exit.c | 44 |
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; -} |
