thread.h
上传用户:shmaik
上传日期:2014-06-01
资源大小:45093k
文件大小:1k
- /* $Id: H:/drh/idioms/book/RCS/thread.doc,v 1.11 1997/02/21 19:50:51 drh Exp $ */
- #ifndef THREAD_INCLUDED
- #define THREAD_INCLUDED
- #include "except.h"
- #define T Thread_T
- typedef struct T *T;
- extern const Except_T Thread_Failed;
- extern const Except_T Thread_Alerted;
- extern int Thread_init (int preempt, ...);
- extern T Thread_new (int apply(void *),
- void *args, int nbytes, ...);
- extern void Thread_exit (int code);
- extern void Thread_alert(T t);
- extern T Thread_self (void);
- extern int Thread_join (T t);
- extern void Thread_pause(void);
- #undef T
- #endif