summaryrefslogtreecommitdiff
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 2d8c863e12..52d2eb2c9c 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -56,7 +56,7 @@ staticforward PyTypeObject Locktype;
#define is_lockobject(v) ((v)->ob_type == &Locktype)
-type_lock
+static type_lock
getlocklock(lock)
PyObject *lock;
{
@@ -252,7 +252,14 @@ t_bootstrap(boot_raw)
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 *