~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-2.7.11-docs-html/library/autogil.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
 
4
 
 
5
 
<html xmlns="http://www.w3.org/1999/xhtml">
6
 
  <head>
7
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
 
    
9
 
    <title>37.7. autoGIL — Global Interpreter Lock handling in event loops &mdash; Python 2.7.11 documentation</title>
10
 
    
11
 
    <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
12
 
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
 
    
14
 
    <script type="text/javascript">
15
 
      var DOCUMENTATION_OPTIONS = {
16
 
        URL_ROOT:    '../',
17
 
        VERSION:     '2.7.11',
18
 
        COLLAPSE_INDEX: false,
19
 
        FILE_SUFFIX: '.html',
20
 
        HAS_SOURCE:  true
21
 
      };
22
 
    </script>
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>
39
 
 
40
 
    
41
 
 
42
 
  </head>
43
 
  <body role="document">  
44
 
    <div class="related" role="navigation" aria-label="related navigation">
45
 
      <h3>Navigation</h3>
46
 
      <ul>
47
 
        <li class="right" style="margin-right: 10px">
48
 
          <a href="../genindex.html" title="General Index"
49
 
             accesskey="I">index</a></li>
50
 
        <li class="right" >
51
 
          <a href="../py-modindex.html" title="Python Module Index"
52
 
             >modules</a> |</li>
53
 
        <li class="right" >
54
 
          <a href="carbon.html" title="37.8. Mac OS Toolbox Modules"
55
 
             accesskey="N">next</a> |</li>
56
 
        <li class="right" >
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> &raquo;</li>
62
 
        <li>
63
 
          <span class="version_switcher_placeholder">2.7.11</span>
64
 
          <a href="../index.html">Documentation</a> &raquo;
65
 
        </li>
66
 
 
67
 
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
68
 
          <li class="nav-item nav-item-2"><a href="mac.html" accesskey="U">37. Mac OS X specific services</a> &raquo;</li> 
69
 
      </ul>
70
 
    </div>    
71
 
 
72
 
    <div class="document">
73
 
      <div class="documentwrapper">
74
 
        <div class="bodywrapper">
75
 
          <div class="body" role="main">
76
 
            
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> &#8212; 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&#8217;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>
85
 
</div>
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>
91
 
</dd></dl>
92
 
 
93
 
<dl class="function">
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
99
 
idle.</p>
100
 
<p>Availability: OSX 10.1 or later.</p>
101
 
</dd></dl>
102
 
 
103
 
</div>
104
 
 
105
 
 
106
 
          </div>
107
 
        </div>
108
 
      </div>
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> &#8212; Interactive application framework</a></p>
114
 
  <h4>Next topic</h4>
115
 
  <p class="topless"><a href="carbon.html"
116
 
                        title="next chapter">37.8. Mac OS Toolbox Modules</a></p>
117
 
<h3>This Page</h3>
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>
122
 
</ul>
123
 
 
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" />
131
 
    </form>
132
 
    <p class="searchtip" style="font-size: 90%">
133
 
    Enter search terms or a module, class or function name.
134
 
    </p>
135
 
</div>
136
 
<script type="text/javascript">$('#searchbox').show(0);</script>
137
 
        </div>
138
 
      </div>
139
 
      <div class="clearer"></div>
140
 
    </div>  
141
 
    <div class="related" role="navigation" aria-label="related navigation">
142
 
      <h3>Navigation</h3>
143
 
      <ul>
144
 
        <li class="right" style="margin-right: 10px">
145
 
          <a href="../genindex.html" title="General Index"
146
 
             >index</a></li>
147
 
        <li class="right" >
148
 
          <a href="../py-modindex.html" title="Python Module Index"
149
 
             >modules</a> |</li>
150
 
        <li class="right" >
151
 
          <a href="carbon.html" title="37.8. Mac OS Toolbox Modules"
152
 
             >next</a> |</li>
153
 
        <li class="right" >
154
 
          <a href="framework.html" title="37.6. FrameWork — Interactive application framework"
155
 
             >previous</a> |</li>
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> &raquo;</li>
159
 
        <li>
160
 
          <span class="version_switcher_placeholder">2.7.11</span>
161
 
          <a href="../index.html">Documentation</a> &raquo;
162
 
        </li>
163
 
 
164
 
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
165
 
          <li class="nav-item nav-item-2"><a href="mac.html" >37. Mac OS X specific services</a> &raquo;</li> 
166
 
      </ul>
167
 
    </div>  
168
 
    <div class="footer">
169
 
    &copy; <a href="../copyright.html">Copyright</a> 1990-2016, Python Software Foundation.
170
 
    <br />
171
 
    The Python Software Foundation is a non-profit corporation.
172
 
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
173
 
    <br />
174
 
    Last updated on Jan 23, 2016.
175
 
    <a href="../bugs.html">Found a bug</a>?
176
 
    <br />
177
 
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
178
 
    </div>
179
 
 
180
 
  </body>
181
 
</html>
 
 
b'\\ No newline at end of file'