diff options
author | Guido van Rossum <guido@python.org> | 1992-08-04 12:41:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-08-04 12:41:02 (GMT) |
commit | 1984f1e1c6306d4e8073c28d2395638f80ea509b (patch) | |
tree | 4366039e7665e689aef04549c3e3d73f99bdab32 /Include/thread.h | |
parent | 4fbf798f866b10ee50cc91a394d19c0d4b2f79ab (diff) | |
download | cpython-1984f1e1c6306d4e8073c28d2395638f80ea509b.zip cpython-1984f1e1c6306d4e8073c28d2395638f80ea509b.tar.gz cpython-1984f1e1c6306d4e8073c28d2395638f80ea509b.tar.bz2 |
* Makefile adapted to changes below.
* split pythonmain.c in two: most stuff goes to pythonrun.c, in the library.
* new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}.
* new module from Sjoerd: mmmodule.c (dynamically loaded).
* new module from Sjoerd: sv (svgen.py, svmodule.c.proto).
* new files thread.{c,h} (from Sjoerd).
* new xxmodule.c (example only).
* myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
Diffstat (limited to 'Include/thread.h')
-rw-r--r-- | Include/thread.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Include/thread.h b/Include/thread.h new file mode 100644 index 0000000..91bac2a --- /dev/null +++ b/Include/thread.h @@ -0,0 +1,27 @@ +#ifndef _THREAD_H_included +#define _THREAD_H_included + +#ifdef __STDC__ +#define _P(args) args +#else +#define _P(args) () +#endif + +void init_thread _P((void)); +int start_new_thread _P((void (*)(void *), void *)); +void exit_thread _P((void)); + +typedef void *type_lock; + +type_lock allocate_lock _P((void)); +void free_lock _P((type_lock)); +int acquire_lock _P((type_lock, int)); +#define WAIT_LOCK 1 +#define NOWAIT_LOCK 0 +void release_lock _P((type_lock)); + +void exit_prog _P((int)); + +#undef _P + +#endif |