/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. :mod:`autoGIL` --- Global Interpreter Lock handling in event loops
  2. ==================================================================
  3. .. module:: autoGIL
  4. :platform: Mac
  5. :synopsis: Global Interpreter Lock handling in event loops.
  6. :deprecated:
  7. .. moduleauthor:: Just van Rossum <just@letterror.com>
  8. The :mod:`autoGIL` module provides a function :func:`installAutoGIL` that
  9. automatically locks and unlocks Python's :term:`Global Interpreter Lock` when
  10. running an event loop.
  11. .. note::
  12. This module has been removed in Python 3.x.
  13. .. exception:: AutoGILError
  14. Raised if the observer callback cannot be installed, for example because the
  15. current thread does not have a run loop.
  16. .. function:: installAutoGIL()
  17. Install an observer callback in the event loop (CFRunLoop) for the current
  18. thread, that will lock and unlock the Global Interpreter Lock (GIL) at
  19. appropriate times, allowing other Python threads to run while the event loop is
  20. idle.
  21. Availability: OSX 10.1 or later.