Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eef0596

Browse files
ZackerySpytzbriancurtin
authored andcommitted
bpo-31370: Remove references to threadless builds (#8805)
Support for threadless builds was removed in a6a4dc8.
1 parent 508d820 commit eef0596

4 files changed

Lines changed: 10 additions & 19 deletions

File tree

Doc/c-api/init.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -842,18 +842,18 @@ code, or when embedding the Python interpreter:
842842
843843
.. c:function:: PyThreadState* PyEval_SaveThread()
844844
845-
Release the global interpreter lock (if it has been created and thread
846-
support is enabled) and reset the thread state to *NULL*, returning the
847-
previous thread state (which is not *NULL*). If the lock has been created,
848-
the current thread must have acquired it.
845+
Release the global interpreter lock (if it has been created) and reset the
846+
thread state to *NULL*, returning the previous thread state (which is not
847+
*NULL*). If the lock has been created, the current thread must have
848+
acquired it.
849849
850850
851851
.. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
852852
853-
Acquire the global interpreter lock (if it has been created and thread
854-
support is enabled) and set the thread state to *tstate*, which must not be
855-
*NULL*. If the lock has been created, the current thread must not have
856-
acquired it, otherwise deadlock ensues.
853+
Acquire the global interpreter lock (if it has been created) and set the
854+
thread state to *tstate*, which must not be *NULL*. If the lock has been
855+
created, the current thread must not have acquired it, otherwise deadlock
856+
ensues.
857857
858858
859859
.. c:function:: PyThreadState* PyThreadState_Get()

Doc/library/queue.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
The :mod:`queue` module implements multi-producer, multi-consumer queues.
1212
It is especially useful in threaded programming when information must be
1313
exchanged safely between multiple threads. The :class:`Queue` class in this
14-
module implements all the required locking semantics. It depends on the
15-
availability of thread support in Python; see the :mod:`threading`
16-
module.
14+
module implements all the required locking semantics.
1715

1816
The module implements three types of queue, which differ only in the order in
1917
which the entries are retrieved. In a :abbr:`FIFO (first-in, first-out)`

Lib/test/_test_multiprocessing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
_multiprocessing = test.support.import_module('_multiprocessing')
3131
# Skip tests if sem_open implementation is broken.
3232
test.support.import_module('multiprocessing.synchronize')
33-
# import threading after _multiprocessing to raise a more relevant error
34-
# message: "No module named _multiprocessing". _multiprocessing is not compiled
35-
# without thread support.
3633
import threading
3734

3835
import multiprocessing.connection

Python/ceval.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,18 +237,14 @@ PyEval_ReInitThreads(void)
237237
}
238238

239239
/* This function is used to signal that async exceptions are waiting to be
240-
raised, therefore it is also useful in non-threaded builds. */
240+
raised. */
241241

242242
void
243243
_PyEval_SignalAsyncExc(void)
244244
{
245245
SIGNAL_ASYNC_EXC();
246246
}
247247

248-
/* Functions save_thread and restore_thread are always defined so
249-
dynamically loaded modules needn't be compiled separately for use
250-
with and without threads: */
251-
252248
PyThreadState *
253249
PyEval_SaveThread(void)
254250
{

0 commit comments

Comments
 (0)