diff options
author | rsc <devnull@localhost> | 2004-05-11 17:51:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-11 17:51:27 +0000 |
commit | c4097c29512269f4547ebefb8abdc57a2892b479 (patch) | |
tree | e84c61a845b196bfa903088e15b772ae0b16c8bb /src/libthread/threadimpl.h | |
parent | 2f2df5e02ef22c9727ae2b8269d5c76a061d296f (diff) | |
download | plan9port-c4097c29512269f4547ebefb8abdc57a2892b479.tar.gz plan9port-c4097c29512269f4547ebefb8abdc57a2892b479.tar.bz2 plan9port-c4097c29512269f4547ebefb8abdc57a2892b479.zip |
Fix small bugs.
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r-- | src/libthread/threadimpl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index 373164ad..7e44e646 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -99,6 +99,7 @@ struct Thread ulong userpc; void* udata[NPRIV]; /* User per-thread data pointer */ + int lastfd; }; struct Execargs @@ -143,6 +144,7 @@ struct Proc Waitmsg *waitmsg; void* udata; /* User per-proc data pointer */ + int nsched; }; struct Pqueue { /* Proc queue */ @@ -169,7 +171,7 @@ void _freeproc(Proc*); Proc* _newproc(void(*)(void*), void*, uint, char*, int, int); int _procsplhi(void); void _procsplx(int); -void _sched(void); +int _sched(void); int _schedexec(Execargs*); void _schedexecwait(void); void _schedexit(Proc*); @@ -219,4 +221,4 @@ extern int _threadgetpid(void); extern void _threadmemset(void*, int, int); extern void _threaddebugmemset(void*, int, int); extern int _threadprocs; -extern void _threadstacklimit(void*); +extern void _threadstacklimit(void*, void*); |