From 06bb4ed20d855b60e39c1125d8d715ba8892265b Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 17 Sep 2004 00:38:29 +0000 Subject: Rewrite to remove dependence on rendezvous and its bizarre data structures. Makes it easier to use pthreads too. Still need to add code for non-pthreads systems. Just a checkpoint to switch work to another machine. --- src/libthread/create.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libthread/create.c') diff --git a/src/libthread/create.c b/src/libthread/create.c index f5f0d6c0..5dee4c48 100644 --- a/src/libthread/create.c +++ b/src/libthread/create.c @@ -2,6 +2,7 @@ Pqueue _threadpq; int _threadprocs; +int __pthread_nonstandard_stacks; static int nextID(void); @@ -21,6 +22,7 @@ newthread(Proc *p, void (*f)(void *arg), void *arg, uint stacksize, char *name, Thread *t; char *s; + __pthread_nonstandard_stacks = 1; if(stacksize < 32) sysfatal("bad stacksize %d", stacksize); t = _threadmalloc(sizeof(Thread), 1); -- cgit v1.2.3