diff Include/thread.h @ 961:a31e07847063 legacy-trunk

New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway() to avoid hanging in cleanup().
author Guido van Rossum <guido@python.org>
date Mon, 17 Aug 1992 08:59:08 +0000
parents 72aceed365d4
children 6b5a34db21fe
line wrap: on
line diff
--- a/Include/thread.h	Mon Aug 17 08:55:12 1992 +0000
+++ b/Include/thread.h	Mon Aug 17 08:59:08 1992 +0000
@@ -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 @@
 #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