Re: [Pyobjc-dev] Threading?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-09-06 06:16:42
|
On 6 sep 2003, at 2:25, Bob Ippolito wrote: > > On Friday, Sep 5, 2003, at 20:15 America/New_York, Jiva DeVoe wrote: > >> How hard is the non-threadsafeness problem with PyObjC? Just >> curious... >> >> And any suggestions for a workaround if I need to create a thread. >> >> (ie: the fact that one basically can't create threads in a pyobjc app) > > That's not true. It's only a little less thread-safe than a typical > ObjC application. <nod> You can use threads as long as you create them with the Python threading primitives. Some of the examples use this to run blocking code in a seperate worker thread. I'm working on a patch that will make it possible to create threads using the NSThread interface, but that won't get in before 1.0. Ronald |