1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
<title>37.7. autoGIL — Global Interpreter Lock handling in event loops — Python 2.7.11 documentation</title>
11
<link rel="stylesheet" href="../_static/classic.css" type="text/css" />
12
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
<script type="text/javascript">
15
var DOCUMENTATION_OPTIONS = {
18
COLLAPSE_INDEX: false,
23
<script type="text/javascript" src="../_static/jquery.js"></script>
24
<script type="text/javascript" src="../_static/underscore.js"></script>
25
<script type="text/javascript" src="../_static/doctools.js"></script>
26
<script type="text/javascript" src="../_static/sidebar.js"></script>
27
<link rel="search" type="application/opensearchdescription+xml"
28
title="Search within Python 2.7.11 documentation"
29
href="../_static/opensearch.xml"/>
30
<link rel="author" title="About these documents" href="../about.html" />
31
<link rel="copyright" title="Copyright" href="../copyright.html" />
32
<link rel="top" title="Python 2.7.11 documentation" href="../contents.html" />
33
<link rel="up" title="37. Mac OS X specific services" href="mac.html" />
34
<link rel="next" title="37.8. Mac OS Toolbox Modules" href="carbon.html" />
35
<link rel="prev" title="37.6. FrameWork — Interactive application framework" href="framework.html" />
36
<link rel="shortcut icon" type="image/png" href="../_static/py.png" />
37
<script type="text/javascript" src="../_static/copybutton.js"></script>
38
<script type="text/javascript" src="../_static/version_switch.js"></script>
43
<body role="document">
44
<div class="related" role="navigation" aria-label="related navigation">
47
<li class="right" style="margin-right: 10px">
48
<a href="../genindex.html" title="General Index"
49
accesskey="I">index</a></li>
51
<a href="../py-modindex.html" title="Python Module Index"
54
<a href="carbon.html" title="37.8. Mac OS Toolbox Modules"
55
accesskey="N">next</a> |</li>
57
<a href="framework.html" title="37.6. FrameWork — Interactive application framework"
58
accesskey="P">previous</a> |</li>
59
<li><img src="../_static/py.png" alt=""
60
style="vertical-align: middle; margin-top: -1px"/></li>
61
<li><a href="https://www.python.org/">Python</a> »</li>
63
<span class="version_switcher_placeholder">2.7.11</span>
64
<a href="../index.html">Documentation</a> »
67
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
68
<li class="nav-item nav-item-2"><a href="mac.html" accesskey="U">37. Mac OS X specific services</a> »</li>
72
<div class="document">
73
<div class="documentwrapper">
74
<div class="bodywrapper">
75
<div class="body" role="main">
77
<div class="section" id="module-autoGIL">
78
<span id="autogil-global-interpreter-lock-handling-in-event-loops"></span><h1>37.7. <a class="reference internal" href="#module-autoGIL" title="autoGIL: Global Interpreter Lock handling in event loops. (deprecated) (Mac)"><code class="xref py py-mod docutils literal"><span class="pre">autoGIL</span></code></a> — Global Interpreter Lock handling in event loops<a class="headerlink" href="#module-autoGIL" title="Permalink to this headline">¶</a></h1>
79
<p>The <a class="reference internal" href="#module-autoGIL" title="autoGIL: Global Interpreter Lock handling in event loops. (deprecated) (Mac)"><code class="xref py py-mod docutils literal"><span class="pre">autoGIL</span></code></a> module provides a function <a class="reference internal" href="#autoGIL.installAutoGIL" title="autoGIL.installAutoGIL"><code class="xref py py-func docutils literal"><span class="pre">installAutoGIL()</span></code></a> that
80
automatically locks and unlocks Python’s <a class="reference internal" href="../glossary.html#term-global-interpreter-lock"><span class="xref std std-term">Global Interpreter Lock</span></a> when
81
running an event loop.</p>
82
<div class="admonition note">
83
<p class="first admonition-title">Note</p>
84
<p class="last">This module has been removed in Python 3.x.</p>
86
<dl class="exception">
87
<dt id="autoGIL.AutoGILError">
88
<em class="property">exception </em><code class="descclassname">autoGIL.</code><code class="descname">AutoGILError</code><a class="headerlink" href="#autoGIL.AutoGILError" title="Permalink to this definition">¶</a></dt>
89
<dd><p>Raised if the observer callback cannot be installed, for example because the
90
current thread does not have a run loop.</p>
94
<dt id="autoGIL.installAutoGIL">
95
<code class="descclassname">autoGIL.</code><code class="descname">installAutoGIL</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#autoGIL.installAutoGIL" title="Permalink to this definition">¶</a></dt>
96
<dd><p>Install an observer callback in the event loop (CFRunLoop) for the current
97
thread, that will lock and unlock the Global Interpreter Lock (GIL) at
98
appropriate times, allowing other Python threads to run while the event loop is
100
<p>Availability: OSX 10.1 or later.</p>
109
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
110
<div class="sphinxsidebarwrapper">
111
<h4>Previous topic</h4>
112
<p class="topless"><a href="framework.html"
113
title="previous chapter">37.6. <code class="docutils literal"><span class="pre">FrameWork</span></code> — Interactive application framework</a></p>
115
<p class="topless"><a href="carbon.html"
116
title="next chapter">37.8. Mac OS Toolbox Modules</a></p>
118
<ul class="this-page-menu">
119
<li><a href="../bugs.html">Report a Bug</a></li>
120
<li><a href="../_sources/library/autogil.txt"
121
rel="nofollow">Show Source</a></li>
124
<div id="searchbox" style="display: none" role="search">
125
<h3>Quick search</h3>
126
<form class="search" action="../search.html" method="get">
127
<input type="text" name="q" />
128
<input type="submit" value="Go" />
129
<input type="hidden" name="check_keywords" value="yes" />
130
<input type="hidden" name="area" value="default" />
132
<p class="searchtip" style="font-size: 90%">
133
Enter search terms or a module, class or function name.
136
<script type="text/javascript">$('#searchbox').show(0);</script>
139
<div class="clearer"></div>
141
<div class="related" role="navigation" aria-label="related navigation">
144
<li class="right" style="margin-right: 10px">
145
<a href="../genindex.html" title="General Index"
148
<a href="../py-modindex.html" title="Python Module Index"
151
<a href="carbon.html" title="37.8. Mac OS Toolbox Modules"
154
<a href="framework.html" title="37.6. FrameWork — Interactive application framework"
156
<li><img src="../_static/py.png" alt=""
157
style="vertical-align: middle; margin-top: -1px"/></li>
158
<li><a href="https://www.python.org/">Python</a> »</li>
160
<span class="version_switcher_placeholder">2.7.11</span>
161
<a href="../index.html">Documentation</a> »
164
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
165
<li class="nav-item nav-item-2"><a href="mac.html" >37. Mac OS X specific services</a> »</li>
169
© <a href="../copyright.html">Copyright</a> 1990-2016, Python Software Foundation.
171
The Python Software Foundation is a non-profit corporation.
172
<a href="https://www.python.org/psf/donations/">Please donate.</a>
174
Last updated on Jan 23, 2016.
175
<a href="../bugs.html">Found a bug</a>?
177
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'