diff options
author | Guido van Rossum <guido@python.org> | 1998-08-04 22:53:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-04 22:53:56 (GMT) |
commit | bcc207484a0f8f27a684e11194e7430c0710f66d (patch) | |
tree | 506ce2d793a619a92e78faa89032878ea4a43461 /Modules/threadmodule.c | |
parent | 1a8791e0b875df8e9428c2d9969f64e5967ac0b4 (diff) | |
download | cpython-bcc207484a0f8f27a684e11194e7430c0710f66d.zip cpython-bcc207484a0f8f27a684e11194e7430c0710f66d.tar.gz cpython-bcc207484a0f8f27a684e11194e7430c0710f66d.tar.bz2 |
Changes for BeOS, QNX and long long, by Chris Herborth.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r-- | Modules/threadmodule.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 2d8c863..52d2eb2 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 * |