From 1544f90960275dc9211bde30329c3258e0e1bf38 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 25 Dec 2004 21:56:33 +0000 Subject: New thread library --- src/libthread/pid.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/libthread/pid.c (limited to 'src/libthread/pid.c') diff --git a/src/libthread/pid.c b/src/libthread/pid.c deleted file mode 100644 index bbc7dbbf..00000000 --- a/src/libthread/pid.c +++ /dev/null @@ -1,25 +0,0 @@ - mypid = getpid(); - - /* - * signal others. - * copying all the pids first avoids other thread's - * teardown procedures getting in the way. - */ - lock(&_threadpq.lock); - npid = 0; - for(p=_threadpq.head; p; p=p->next) - npid++; - pid = _threadmalloc(npid*sizeof(pid[0]), 0); - npid = 0; - for(p = _threadpq.head; p; p=p->next) - pid[npid++] = p->pid; - unlock(&_threadpq.lock); - for(i=0; i