PageRenderTime 313ms CodeModel.GetById 130ms app.highlight 2ms RepoModel.GetById 180ms app.codeStats 0ms

/Doc/library/autogil.rst

http://unladen-swallow.googlecode.com/
ReStructuredText | 35 lines | 21 code | 14 blank | 0 comment | 0 complexity | e5baa3749effbca7d1acbc63d89e3d1b MD5 | raw file
 1
 2:mod:`autoGIL` --- Global Interpreter Lock handling in event loops
 3==================================================================
 4
 5.. module:: autoGIL
 6   :platform: Mac
 7   :synopsis: Global Interpreter Lock handling in event loops.
 8   :deprecated:
 9.. moduleauthor:: Just van Rossum <just@letterror.com>
10
11
12The :mod:`autoGIL` module provides a function :func:`installAutoGIL` that
13automatically locks and unlocks Python's :term:`Global Interpreter Lock` when
14running an event loop.
15
16.. note::
17
18   This module has been removed in Python 3.x.
19
20
21.. exception:: AutoGILError
22
23   Raised if the observer callback cannot be installed, for example because the
24   current thread does not have a run loop.
25
26
27.. function:: installAutoGIL()
28
29   Install an observer callback in the event loop (CFRunLoop) for the current
30   thread, that will lock and unlock the Global Interpreter Lock (GIL) at
31   appropriate times, allowing other Python threads to run while the event loop is
32   idle.
33
34   Availability: OSX 10.1 or later.
35