diff options
| author | rsc <devnull@localhost> | 2004-09-17 00:38:29 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-09-17 00:38:29 +0000 |
| commit | 06bb4ed20d855b60e39c1125d8d715ba8892265b (patch) | |
| tree | 8294b537f5b81809671985903e31c4835c41cd04 /src/libthread/create.c | |
| parent | 984e353160593b20d1e2944e1f2e9ce2117c8490 (diff) | |
| download | plan9port-06bb4ed20d855b60e39c1125d8d715ba8892265b.tar.gz plan9port-06bb4ed20d855b60e39c1125d8d715ba8892265b.zip | |
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.
Diffstat (limited to 'src/libthread/create.c')
| -rw-r--r-- | src/libthread/create.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
