aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-09-17 03:34:32 +0000
committerrsc <devnull@localhost>2004-09-17 03:34:32 +0000
commitbcf527a98e295548629620a7cb06ada951db7822 (patch)
tree0c459268d6391745a7acc3fefb82ba1e62ed858e /src/libthread/threadimpl.h
parent06bb4ed20d855b60e39c1125d8d715ba8892265b (diff)
Continue switching library over to pthreads when possible.
Tprimes works on Linux 2.6. You can only have 128 procs though.
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index 851186e3..d6a23905 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -95,6 +95,8 @@ struct Thread
Chanstate chan; /* which channel operation is current */
Alt *alt; /* pointer to current alt structure (debugging) */
ulong userpc;
+ Channel *c;
+ pthread_cond_t cond;
void* udata[NPRIV]; /* User per-thread data pointer */
int lastfd;
@@ -136,6 +138,8 @@ struct Proc
uint nextID; /* ID of most recently created thread */
Proc *next; /* linked list of Procs */
+ _Procrend rend; /* sleep here for more ready threads */
+
void *arg; /* passed between shared and unshared stk */
char str[ERRMAX]; /* used by threadexits to avoid malloc */
char errbuf[ERRMAX]; /* errstr */