diff Modules/threadmodule.c @ 8823:f2a4a2b60860 legacy-trunk

Changes for BeOS, QNX and long long, by Chris Herborth.
author Guido van Rossum <guido@python.org>
date Tue, 04 Aug 1998 22:53:56 +0000
parents bc8619af0923
children 07dae6fdae79
line wrap: on
line diff
--- a/Modules/threadmodule.c	Tue Aug 04 22:46:29 1998 +0000
+++ b/Modules/threadmodule.c	Tue Aug 04 22:53:56 1998 +0000
@@ -56,7 +56,7 @@
 
 #define is_lockobject(v)		((v)->ob_type == &Locktype)
 
-type_lock
+static type_lock
 getlocklock(lock)
 	PyObject *lock;
 {
@@ -252,7 +252,14 @@
 	PyThreadState_Clear(tstate);
 	PyEval_ReleaseThread(tstate);
 	PyThreadState_Delete(tstate);
+#ifdef __BEOS__
+	/* Dunno if this will cause problems with other ports; the BeOS thread
+	 * support features only 100% renamed functions. [cjh]
+	 */
+	PyThread_exit_thread();
+#else
 	exit_thread();
+#endif
 }
 
 static PyObject *