2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
:mod:`autoGIL` --- Global Interpreter Lock handling in event loops
|
|
|
|
==================================================================
|
|
|
|
|
|
|
|
.. module:: autoGIL
|
|
|
|
:platform: Mac
|
|
|
|
:synopsis: Global Interpreter Lock handling in event loops.
|
2008-05-12 18:42:13 -03:00
|
|
|
:deprecated:
|
2007-08-15 11:28:01 -03:00
|
|
|
.. moduleauthor:: Just van Rossum <just@letterror.com>
|
|
|
|
|
|
|
|
|
|
|
|
The :mod:`autoGIL` module provides a function :func:`installAutoGIL` that
|
2007-10-21 09:10:28 -03:00
|
|
|
automatically locks and unlocks Python's :term:`Global Interpreter Lock` when
|
|
|
|
running an event loop.
|
2007-08-15 11:28:01 -03:00
|
|
|
|
Merged revisions 72007-72010,72036-72037 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72007 | georg.brandl | 2009-04-27 17:09:25 +0200 (Mo, 27 Apr 2009) | 1 line
#5856: fix typo s in traceback example.
........
r72008 | georg.brandl | 2009-04-27 17:10:44 +0200 (Mo, 27 Apr 2009) | 1 line
Remove ".. warning::" markup that doesnt contain warnings for users, rather todo items.
........
r72009 | georg.brandl | 2009-04-27 17:29:09 +0200 (Mo, 27 Apr 2009) | 3 lines
Demote warnings to notices where appropriate, following the goal that as few "red box" warnings
should clutter the docs as possible. Part 1: stuff that gets merged to Py3k.
........
r72010 | georg.brandl | 2009-04-27 17:29:26 +0200 (Mo, 27 Apr 2009) | 2 lines
Demote warnings to notices, part 2: stuff that is 2.x-only.
........
r72036 | georg.brandl | 2009-04-27 19:04:23 +0200 (Mo, 27 Apr 2009) | 1 line
#5848: small unittest doc patch.
........
r72037 | georg.brandl | 2009-04-27 19:09:53 +0200 (Mo, 27 Apr 2009) | 1 line
#5840: dont claim we dont support TLS.
........
2009-04-28 15:23:28 -03:00
|
|
|
.. note::
|
2008-05-12 18:42:13 -03:00
|
|
|
|
Merged revisions 72007-72010,72036-72037 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72007 | georg.brandl | 2009-04-27 17:09:25 +0200 (Mo, 27 Apr 2009) | 1 line
#5856: fix typo s in traceback example.
........
r72008 | georg.brandl | 2009-04-27 17:10:44 +0200 (Mo, 27 Apr 2009) | 1 line
Remove ".. warning::" markup that doesnt contain warnings for users, rather todo items.
........
r72009 | georg.brandl | 2009-04-27 17:29:09 +0200 (Mo, 27 Apr 2009) | 3 lines
Demote warnings to notices where appropriate, following the goal that as few "red box" warnings
should clutter the docs as possible. Part 1: stuff that gets merged to Py3k.
........
r72010 | georg.brandl | 2009-04-27 17:29:26 +0200 (Mo, 27 Apr 2009) | 2 lines
Demote warnings to notices, part 2: stuff that is 2.x-only.
........
r72036 | georg.brandl | 2009-04-27 19:04:23 +0200 (Mo, 27 Apr 2009) | 1 line
#5848: small unittest doc patch.
........
r72037 | georg.brandl | 2009-04-27 19:09:53 +0200 (Mo, 27 Apr 2009) | 1 line
#5840: dont claim we dont support TLS.
........
2009-04-28 15:23:28 -03:00
|
|
|
This module has been removed in Python 3.x.
|
2008-05-12 18:42:13 -03:00
|
|
|
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
.. exception:: AutoGILError
|
|
|
|
|
|
|
|
Raised if the observer callback cannot be installed, for example because the
|
|
|
|
current thread does not have a run loop.
|
|
|
|
|
|
|
|
|
|
|
|
.. function:: installAutoGIL()
|
|
|
|
|
|
|
|
Install an observer callback in the event loop (CFRunLoop) for the current
|
|
|
|
thread, that will lock and unlock the Global Interpreter Lock (GIL) at
|
|
|
|
appropriate times, allowing other Python threads to run while the event loop is
|
|
|
|
idle.
|
|
|
|
|
|
|
|
Availability: OSX 10.1 or later.
|
|
|
|
|