Re: [Pyobjc-dev] Threading
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-01-21 17:21:03
|
On Tuesday, Jan 21, 2003, at 00:59 Europe/Amsterdam, Bob Ippolito wrote: > On Monday, Jan 20, 2003, at 18:50 America/New_York, Tony Lownds wrote: > >> Hi, >> >> I'm trying to make a Cocoa front end for an HTTP based python >> application (spambayes). My program spawns a thread to handle the >> HTTP requests, but that thread blocks. I've also tried a thread that >> does nothing count, and it blocks too. Any advice on writing a pyobjc >> program that uses threads? >> >> PyObjC .8 >> python 2.2 (from Apple) > > My best suggestion is simply don't :) This the right suggestion for now (without saying whether threading is good or not). PyObjC is currently not thread-safe. Most of the code should be thread-safe, but we haven't really checked if it is. Furthmore you have to add some special code to Python extension module to make them cooperate in the Python implementation of multithreading and we haven't done that yet. Ronald |