ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Macintosh Module Reference
2. MacPython Modules
2.1 macpath -- MacOS path manipulation functions
2.2 macfs -- Various file system services
2.3 ic -- Access to Internet Config
2.4 MacOS -- Access to Mac OS interpreter features
2.5 macostools -- Convenience routines for file manipulation
2.6 findertools -- The finder's Apple Events interface
2.7 EasyDialogs -- Basic Macintosh dialogs
2.8 FrameWork -- Interactive application framework
2.9 autoGIL -- Global Interpreter Lock handling in event loops

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Macintosh Module Reference >> 2. MacPython Modules
ActivePython 2.4 documentation

2.9 autoGIL -- Global Interpreter Lock handling in event loops

Availability: Macintosh.

The autoGIL module provides a function installAutoGIL that automatically locks and unlocks Python's Global Interpreter Lock when running an event loop.

exception AutoGILError
Raised if the observer callback cannot be installed, for example because the current thread does not have a run loop.

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.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved