diff options
| author | rsc <devnull@localhost> | 2004-12-27 00:13:48 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2004-12-27 00:13:48 +0000 |
| commit | e1dc7e4511d4644060d4904dcae50808d966fff7 (patch) | |
| tree | f2e33a457ee10672e40b659826ccd1a649f9ca19 /src/libthread/threadimpl.h | |
| parent | 43db87f1fcb51065ef50beae9da8b6310ccf1cae (diff) | |
signal handling, add prototype for pthreadinit
Diffstat (limited to 'src/libthread/threadimpl.h')
| -rw-r--r-- | src/libthread/threadimpl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index 9f70b0e0..fb7e4c3b 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -4,6 +4,12 @@ typedef struct Context Context; typedef struct Proc Proc; typedef struct _Procrendez _Procrendez; +typedef struct Jmp Jmp; +struct Jmp +{ + p9jmp_buf b; +}; + enum { STACK = 8192 @@ -54,6 +60,7 @@ struct Proc _Procrendez runrend; Context schedcontext; void *udata; + Jmp sigjmp; }; extern Proc *xxx; @@ -67,4 +74,4 @@ extern Proc *_threadproc(void); extern void _threadsetproc(Proc*); extern int _threadlock(Lock*, int, ulong); extern void _threadunlock(Lock*, ulong); - +extern void _pthreadinit(void); |