Re: [Orbit-python-list] orb.run with threads
Status: Inactive
Brought to you by:
tack
From: Joseph T. B. <jb...@tj...> - 2000-08-25 16:37:15
|
Jason Tackaberry writes: > > As I look at this further i've begun to wonder how you can write a > > gtk/corba(ORBit) application when I need to call gtk_mainloop and > > orb.run but yet neither of them returns until the program wants to go > > of the evidence i've seen so fars indicates that python-orbit, and > > perhaps even orbit itself are not thread safe. > > This is true. ORBit-Python definitely isn't reentrant, and I don't think > ORBit is either. (Rumor has it there is or was some work done in this area, > but I don't know what the status is.) actually the more I think about it, orbit doesnt really worry me that much since it's in a different process space. > What you really want is Gnorba. Basically, Gnorba (among other things) > provides a new main loop that handles both gtk+ and ORBit main loops. This > is something I always wanted to do (and was partly my motivation for writing > ORBit-Python), but I never did get around to it. This interests me, but unforunately I was only musing about the difficulty of using gtk and orbit. For now I just need to use python-orbit and threads. gtk is the next step, so you can bet I'm going to be back... 8) Now here is where my naivete comes in about extending the python interpreter. Is it possible to have pyorbit release the lock right before it blocks and then after it unblocks, re-aquire the lock? It just cant be that simple I'm sure. I'd be willing to help out with this, but I'm going to probably need some help figuring out some of the internals that I dont know already. > I would certainly be pleased to see some work done in this area, and I'd > be happy to work on that (or help work on that) once I stabilize > ORBit-Python itself. Check out: > http://developer.gnome.org/arch/component/gnorba.html if all goes well i'd help out there too. jb -- ------------------+--------------------------------------------------------- Joseph T. Bore | When you have tremendous conviction on a trade, you have jb...@TJ... | to go for the jugular. It takes courage to be a pig. ------------------+--------------------------------------------------------- |