[Pythonmac-SIG] problem with CarbonEvt, Thread and sleep
has
hengist.podd at virgin.net
Mon Jul 2 11:55:43 CEST 2007
On 2 Jul 2007, at 10:12, Ronald Oussoren wrote:
>> Trying to implement a watchdog thread in a Carbon Event-based
>> application. Trouble is, the thread's sleep() call never seems to
>> return.
>
> There is no threading support in the Carbon bindings. The wrapper
> for RunApplicationEventLoop doesn't give up the GIL, which means
> other Python threads don't get a chance to run unless the main
> thread is actually handling events in Python code.
Ahh, should've guessed. I'll redo it in PyObjC then.
Thanks,
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html
More information about the Pythonmac-SIG
mailing list