[Python-Dev] Threading idea -- exposing a global thread lock (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Tue Mar 14 07:01:36 CET 2006
- Previous message: [Python-Dev] Threading idea -- exposing a global thread lock
- Next message: [Python-Dev] Threading idea -- exposing a global thread lock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
it doesn't translate reasonably to Jython or IronPython, it's really tricky to implement,
FWIW, someone on the newsgroup suggested implementing this via a slight modification to sys.checkinterval(). The idea was that a None argument would translate to "stop-checking" and the active thread would do a few steps atomically and then restore the original value. The new with-statement makes that a piece of cake.
Raymond
- Previous message: [Python-Dev] Threading idea -- exposing a global thread lock
- Next message: [Python-Dev] Threading idea -- exposing a global thread lock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]