[omniORB] Thread Priorities

Duncan Grisby duncan at grisby.org
Fri Mar 10 14:44:58 GMT 2006


On Wednesday 8 March, "Brian Neal" wrote:

> I'm just curious though...it says in the docs you are supposed to call
> getInterceptors() after ORB_init. That makes sense to me if you have
> to set up the whole interceptor facility then. But doesn't omniORB
> create a bunch of threads during ORB_init() and then it is too late to
> intercept their creation? Or does omniORB wait until someone actually
> tries to use the ORB before creating the threads? I would have guessed
> thread creation happens during orb->run(), but I read on this list
> that you don't even need to call orb->run() under omniORB.

omniORB doesn't create any threads at ORB_init(). The first time any
threads are created is when you resolve the Root POA. As long as you set
up your interceptor as the first thing after ORB_init(), it will
intercept all threads created by omniORB.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list