summaryrefslogtreecommitdiffstats
path: root/Include/pythread.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-17 08:59:08 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-17 08:59:08 (GMT)
commitf9f2e82fcade2d44a69bbdac1ba59bdf591743f4 (patch)
tree0d9a0201382025d0a09e75cbdf37973a8b8cb32f /Include/pythread.h
parent0297512a08698cdee4bebe044a40b08b406398a8 (diff)
downloadcpython-f9f2e82fcade2d44a69bbdac1ba59bdf591743f4.zip
cpython-f9f2e82fcade2d44a69bbdac1ba59bdf591743f4.tar.gz
cpython-f9f2e82fcade2d44a69bbdac1ba59bdf591743f4.tar.bz2
New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()
to avoid hanging in cleanup().
Diffstat (limited to 'Include/pythread.h')
-rw-r--r--Include/pythread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pythread.h b/Include/pythread.h
index 91bac2a..fb2ff48 100644
--- a/Include/pythread.h
+++ b/Include/pythread.h
@@ -10,6 +10,7 @@
void init_thread _P((void));
int start_new_thread _P((void (*)(void *), void *));
void exit_thread _P((void));
+void _exit_thread _P((void));
typedef void *type_lock;
@@ -20,7 +21,15 @@ int acquire_lock _P((type_lock, int));
#define NOWAIT_LOCK 0
void release_lock _P((type_lock));
+typedef void *type_sema;
+
+type_sema allocate_sema _P((int));
+void free_sema _P((type_sema));
+void down_sema _P((type_sema));
+void up_sema _P((type_sema));
+
void exit_prog _P((int));
+void _exit_prog _P((int));
#undef _P