diff options
author | Guido van Rossum <guido@python.org> | 1998-12-21 19:32:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-21 19:32:43 (GMT) |
commit | 65d5b5763c6bbd99d2e2c6b219570f4562382ff0 (patch) | |
tree | 0a909da387c751fbfe8a90bb4a5a83f59f6c86a5 /Modules/signalmodule.c | |
parent | 14f53a77579d411b7b3f491f45753315e40f1aa9 (diff) | |
download | cpython-65d5b5763c6bbd99d2e2c6b219570f4562382ff0.zip cpython-65d5b5763c6bbd99d2e2c6b219570f4562382ff0.tar.gz cpython-65d5b5763c6bbd99d2e2c6b219570f4562382ff0.tar.bz2 |
Thanks to Chris Herborth, the thread primitives now have proper Py*
names in the source code (they already had those for the linker,
through some smart macros; but the source still had the old, un-Py names).
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 11b624a..26bb940 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -221,7 +221,7 @@ signal_signal(self, args) if (!PyArg_Parse(args, "(iO)", &sig_num, &obj)) return NULL; #ifdef WITH_THREAD - if (get_thread_ident() != main_thread) { + if (PyThread_get_thread_ident() != main_thread) { PyErr_SetString(PyExc_ValueError, "signal only works in main thread"); return NULL; @@ -346,7 +346,7 @@ initsignal() int i; #ifdef WITH_THREAD - main_thread = get_thread_ident(); + main_thread = PyThread_get_thread_ident(); main_pid = getpid(); #endif @@ -619,7 +619,7 @@ PyErr_CheckSignals() if (!is_tripped) return 0; #ifdef WITH_THREAD - if (get_thread_ident() != main_thread) + if (PyThread_get_thread_ident() != main_thread) return 0; #endif if (!(f = PyEval_GetFrame())) @@ -676,7 +676,7 @@ PyOS_InterruptOccurred() { if (Handlers[SIGINT].tripped) { #ifdef WITH_THREAD - if (get_thread_ident() != main_thread) + if (PyThread_get_thread_ident() != main_thread) return 0; #endif Handlers[SIGINT].tripped = 0; @@ -689,7 +689,7 @@ void PyOS_AfterFork() { #ifdef WITH_THREAD - main_thread = get_thread_ident(); + main_thread = PyThread_get_thread_ident(); main_pid = getpid(); #endif } |