Re: [Pyobjc-dev] Achieving 1.0....
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2002-10-29 10:51:09
|
On Monday, Oct 28, 2002, at 17:45 Europe/Amsterdam, Bill Bumgarner wrote: > When traversing from Python into Obj-C in a thread that was created in > pure python (i.e. is just a pthread, does not have an NSThread > instance), invoking NSThread's +currentThread method will return an > NSThread that encapsulates the already created pthread. If you do this, does that make a pthread a fullblown NSThread? I.e. does it make the problems you sketched earlier (such as isMultiThreaded returning NO) go away? Hmm, this may well point to a solution to a completely different problem I have (my multithreaded OpenGL programs stopped working as of 10.2).... Is there an easy way to do this from C? > I would assume that threaded python already has the pthread > initialized with the appropriate state and it would just be a matter > of adding any bridge specific state at this point? Yes. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |