From 5a8e63b2f016735364d17866d5e2bcb35d20c78b Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 29 Feb 2004 22:10:26 +0000 Subject: Fighting the good fight. Move libfmt, libutf into subdirectories of lib9. Add poll-based socket i/o to libthread, so that we can avoid using multiple procs when possible, thus removing dependence on crappy pthreads implementations. Convert samterm, acme to the single-proc libthread. Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution. --- src/libthread/threadimpl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libthread/threadimpl.h') diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index 0dd1e870..590342ab 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -139,6 +139,7 @@ struct Proc void *arg; /* passed between shared and unshared stk */ char str[ERRMAX]; /* used by threadexits to avoid malloc */ char errbuf[ERRMAX]; /* errstr */ + Waitmsg *waitmsg; void* udata; /* User per-proc data pointer */ }; @@ -181,6 +182,7 @@ void __threaddebug(ulong, char*, ...); void _threadexitsall(char*); void _threadflagrendez(Thread*); Proc* _threadgetproc(void); +extern void _threadmultiproc(void); Proc* _threaddelproc(void); void _threadsetproc(Proc*); void _threadinitstack(Thread*, void(*)(void*), void*); @@ -195,7 +197,6 @@ long _xdec(long*); void _xinc(long*); void _threadremove(Proc*, Thread*); -extern int _threadmultiproc; extern int _threaddebuglevel; extern char* _threadexitsallstatus; extern Pqueue _threadpq; -- cgit v1.2.3