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

Skip to content

Commit 1662162

Browse files
committed
Documented the new autoGIL module.
1 parent ba5db20 commit 1662162

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Doc/Makefile.deps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ MACFILES= $(HOWTOSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
362362
mac/libmacui.tex \
363363
mac/libmacic.tex \
364364
mac/libframework.tex \
365+
mac/libautogil.tex \
365366
mac/libminiae.tex \
366367
mac/libscrap.tex
367368

Doc/mac/libautogil.tex

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
\section{\module{autoGIL} ---
2+
Global Interpreter Lock handling in event loops}
3+
4+
\declaremodule{extension}{autoGIL}
5+
\platform{Mac}
6+
\modulesynopsis{Global Interpreter Lock handling in event loops.}
7+
\moduleauthor{Just van Rossum}{[email protected]}
8+
9+
10+
The \module{autoGIL} module provides a function \function{installAutoGIL} that
11+
automatically locks and unlocks Python's Global Interpreter Lock
12+
when running an event loop.
13+
14+
\begin{excdesc}{AutoGILError}
15+
Raised if the observer callback cannot be installed, for example because
16+
the current thread does not have a run loop.
17+
\end{excdesc}
18+
19+
\begin{funcdesc}{installAutoGIL}{}
20+
Install an observer callback in the event loop (CFRunLoop) for the
21+
current thread, that will lock and unlock the Global Interpreter Lock
22+
(GIL) at appropriate times, allowing other Python threads to run while
23+
the event loop is idle.
24+
25+
Availability: OSX 10.1 or later.
26+
\end{funcdesc}

Doc/mac/mac.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ \chapter{MacPython Modules \label{macpython-modules}}
5757
\input{libmacostools}
5858
\input{libmacui}
5959
\input{libframework}
60+
\input{libautogil}
6061

6162
\input{scripting}
6263

0 commit comments

Comments
 (0)