File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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()
Original file line number Diff line number Diff line change 1111The :mod: `queue ` module implements multi-producer, multi-consumer queues.
1212It is especially useful in threaded programming when information must be
1313exchanged 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
1816The module implements three types of queue, which differ only in the order in
1917which the entries are retrieved. In a :abbr: `FIFO ( first-in, first-out ) `
Original file line number Diff line number Diff line change 3030_multiprocessing = test .support .import_module ('_multiprocessing' )
3131# Skip tests if sem_open implementation is broken.
3232test .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.
3633import threading
3734
3835import multiprocessing .connection
Original file line number Diff line number Diff 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
242242void
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-
252248PyThreadState *
253249PyEval_SaveThread (void )
254250{
You can’t perform that action at this time.
0 commit comments