[omniORB] Threading in python

Duncan Grisby duncan@grisby.org
Fri, 03 May 2002 16:32:33 +0100


On Friday 3 May, Thomas Lockhart wrote:

> Output and code are included below. fwiw, ORBit-python seems to show the
> same behavior.

I have a suspicion that you're actually using ORBit-Python when you
think you're using omniORBpy...

[...]
> myst* ./pingclient.py 
> Result for RootPOA is 810b060

This is what makes me suspicious. That message isn't anything that
omniORBpy would produce, and there's no code in your program that
prints it. ORBit-Python is single threaded, and it does indeed block
all Python threads when orb.run() is called.

Change the "import CORBA" to "from omniORB import CORBA" and see what
happens.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --