From df970459f9b37386fbfd4b7f3646825c8029caa8 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 26 Jun 2006 05:47:59 +0000 Subject: pin --- include/libc.h | 3 +++ include/thread.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/libc.h b/include/libc.h index 96b3f0c2..6a04b7b0 100644 --- a/include/libc.h +++ b/include/libc.h @@ -417,6 +417,9 @@ extern long p9time(long*); extern void needstack(int); extern char* readcons(char*, char*, int); +extern void (*_pin)(void); +extern void (*_unpin)(void); + #ifndef NOPLAN9DEFINES #define atexit p9atexit #define atexitdont p9atexitdont diff --git a/include/thread.h b/include/thread.h index 2a84e619..2301191d 100644 --- a/include/thread.h +++ b/include/thread.h @@ -25,6 +25,8 @@ void _threadsleep(Rendez*); _Thread *_threadwakeup(Rendez*); #define yield threadyield int threadid(void); +void _threadpin(void); +void _threadunpin(void); /* * I am tired of making this mistake. -- cgit v1.2.3