From 678ede7e54bf508991380c0f896fed6005b87ce9 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 27 Dec 2004 00:14:43 +0000 Subject: various changes from plan 9 --- include/thread.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/thread.h') diff --git a/include/thread.h b/include/thread.h index 8dbabe61..c8f00340 100644 --- a/include/thread.h +++ b/include/thread.h @@ -13,11 +13,13 @@ void threadexits(char *); void threadexitsall(char *); void threadsetname(char*, ...); void threadsetstate(char*, ...); +void threadyield(void); void _threadready(_Thread*); void _threadswitch(void); void _threadsetsysproc(void); void _threadsleep(Rendez*); _Thread *_threadwakeup(Rendez*); +#define yield threadyield /* * per proc and thread data -- cgit v1.2.3