Commit 806febd8 authored by Michael W. Hudson's avatar Michael W. Hudson

fix some silly whitespace stuff (must have hit M-q or something?)

parent 452ead32
...@@ -471,10 +471,10 @@ thread is now: ...@@ -471,10 +471,10 @@ thread is now:
PyGILState_Release(gstate); PyGILState_Release(gstate);
\end{verbatim} \end{verbatim}
Note that the \cfunction{PyGILState_*()} functions assume there is only Note that the \cfunction{PyGILState_*()} functions assume there is
one global interpreter (created automatically by only one global interpreter (created automatically by
\cfunction{Py_Initialize()}). Python still supports the creation of \cfunction{Py_Initialize()}). Python still supports the creation of
additional interpreters (using \cfunction{Py_NewInterpreter()}), but additional interpreters (using \cfunction{Py_NewInterpreter()}), but
mixing multiple interpreters and the \cfunction{PyGILState_*()} API is mixing multiple interpreters and the \cfunction{PyGILState_*()} API is
unsupported. unsupported.
...@@ -697,16 +697,16 @@ interpreter lock has been created. ...@@ -697,16 +697,16 @@ interpreter lock has been created.
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{PyGILState_STATE}{PyGILState_Ensure}{} \begin{cfuncdesc}{PyGILState_STATE}{PyGILState_Ensure}{}
Ensure that the current thread is ready to call the Python Ensure that the current thread is ready to call the Python C API
C API regardless of the current state of Python, or of its regardless of the current state of Python, or of its thread lock.
thread lock. This may be called as many times as desired This may be called as many times as desired by a thread as long as
by a thread as long as each call is matched with a call to each call is matched with a call to \cfunction{PyGILState_Release()}.
\cfunction{PyGILState_Release()}. In general, other thread-related APIs may be used between
In general, other thread-related APIs may \cfunction{PyGILState_Ensure()} and \cfunction{PyGILState_Release()}
be used between \cfunction{PyGILState_Ensure()} and \cfunction{PyGILState_Release()} calls as long as the calls as long as the thread state is restored to its previous state
thread state is restored to its previous state before the Release(). before the Release(). For example, normal usage of the
For example, normal usage of the \csimplemacro{Py_BEGIN_ALLOW_THREADS} \csimplemacro{Py_BEGIN_ALLOW_THREADS} and
and \csimplemacro{Py_END_ALLOW_THREADS} macros is acceptable. \csimplemacro{Py_END_ALLOW_THREADS} macros is acceptable.
The return value is an opaque "handle" to the thread state when The return value is an opaque "handle" to the thread state when
\cfunction{PyGILState_Acquire()} was called, and must be passed to \cfunction{PyGILState_Acquire()} was called, and must be passed to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment