]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31370: Remove references to threadless builds (#8805)
authorZackery Spytz <zspytz@gmail.com>
Sat, 29 Sep 2018 16:07:11 +0000 (10:07 -0600)
committerBrian Curtin <brian@python.org>
Sat, 29 Sep 2018 16:07:11 +0000 (10:07 -0600)
Support for threadless builds was removed in a6a4dc81.

Doc/c-api/init.rst
Doc/library/queue.rst
Lib/test/_test_multiprocessing.py
Python/ceval.c

index 694b4669eea8979e3bafb385f19dd06178f3646a..e51a2555f6adede0d2107ab00ae5cbd1de32207a 100644 (file)
@@ -842,18 +842,18 @@ code, or when embedding the Python interpreter:
 
 .. c:function:: PyThreadState* PyEval_SaveThread()
 
-   Release the global interpreter lock (if it has been created and thread
-   support is enabled) and reset the thread state to *NULL*, returning the
-   previous thread state (which is not *NULL*).  If the lock has been created,
-   the current thread must have acquired it.
+   Release the global interpreter lock (if it has been created) and reset the
+   thread state to *NULL*, returning the previous thread state (which is not
+   *NULL*).  If the lock has been created, the current thread must have
+   acquired it.
 
 
 .. c:function:: void PyEval_RestoreThread(PyThreadState *tstate)
 
-   Acquire the global interpreter lock (if it has been created and thread
-   support is enabled) and set the thread state to *tstate*, which must not be
-   *NULL*.  If the lock has been created, the current thread must not have
-   acquired it, otherwise deadlock ensues.
+   Acquire the global interpreter lock (if it has been created) and set the
+   thread state to *tstate*, which must not be *NULL*.  If the lock has been
+   created, the current thread must not have acquired it, otherwise deadlock
+   ensues.
 
 
 .. c:function:: PyThreadState* PyThreadState_Get()
index 1520faa9b83ff03d0305dba491f34196ae9bd021..6106d0cd381fceacb0ea20670da6f028b214ba4d 100644 (file)
@@ -11,9 +11,7 @@
 The :mod:`queue` module implements multi-producer, multi-consumer queues.
 It is especially useful in threaded programming when information must be
 exchanged safely between multiple threads.  The :class:`Queue` class in this
-module implements all the required locking semantics.  It depends on the
-availability of thread support in Python; see the :mod:`threading`
-module.
+module implements all the required locking semantics.
 
 The module implements three types of queue, which differ only in the order in
 which the entries are retrieved.  In a :abbr:`FIFO (first-in, first-out)`
index bb9eb240a8a24a0480bd8468718142e8b08e9846..d728091bab1b1ceb3c5b027671bc18e7442dea44 100644 (file)
@@ -30,9 +30,6 @@ from test import support
 _multiprocessing = test.support.import_module('_multiprocessing')
 # Skip tests if sem_open implementation is broken.
 test.support.import_module('multiprocessing.synchronize')
-# import threading after _multiprocessing to raise a more relevant error
-# message: "No module named _multiprocessing". _multiprocessing is not compiled
-# without thread support.
 import threading
 
 import multiprocessing.connection
index d0f9915b4f0a03628bfc8d7ef511590e48016f62..1a8c9e236493242f1d202c0791af63e1668ad4c7 100644 (file)
@@ -237,7 +237,7 @@ PyEval_ReInitThreads(void)
 }
 
 /* This function is used to signal that async exceptions are waiting to be
-   raised, therefore it is also useful in non-threaded builds. */
+   raised. */
 
 void
 _PyEval_SignalAsyncExc(void)
@@ -245,10 +245,6 @@ _PyEval_SignalAsyncExc(void)
     SIGNAL_ASYNC_EXC();
 }
 
-/* Functions save_thread and restore_thread are always defined so
-   dynamically loaded modules needn't be compiled separately for use
-   with and without threads: */
-
 PyThreadState *
 PyEval_SaveThread(void)
 {