[omniORB] Threads management for omniORBpy

Duncan Grisby duncan at grisby.org
Fri Feb 11 14:36:26 GMT 2005


On Friday 11 February, Yura Smolsky wrote:

> What is the purpose of class WorkerThread(threading.Thread) defined
> in the omniORB/__init__.py? What does create instances of this class?

It provides an object to be returned from threading.currentThread(). It
is created the first time an omniORB thread is used to call into Python,
and removed when the thread is about to exit, or hasn't been used for
Python calls for a while. It's called from code in pyThreadCache.cc. You
can add a hook to it with omniORB.addWThreadHook, documented in
omniORB/__init__.py.

Are you just asking out of interest, or do you have a specific problem?

Cheers,

Duncan.

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



More information about the omniORB-list mailing list