[omniORB] Threads management for omniORBpy
Yura Smolsky
info at altervision.biz
Sat Feb 12 12:15:23 GMT 2005
>> Problem: PyLucene lib require all threads which operate to PyLucene
>> object to be inherited from
>> PyLucene.PythonThread. PythonThread is initializated from Java. So, I
>> need somehow inherit all "worker" omniORB threads from PyLucene.PythonThread.
DG> What you'll have to do is yourself create a PyLucene thread for each
DG> omniORB worker thread (you can use the worker thread hook to do that),
DG> then for each call that needs to talk to Lucene, trigger the PyLucene
DG> thread to do it for you. It's pretty easy to do that with a Queue object
DG> or two.
Well, I understand your idea. But I don't know how to trigger the PyLucene
thread? And how can Queue can help me in that case?
Can you sketch me python carcass of your idea?
Thanks!
Yura Smolsky.
More information about the omniORB-list
mailing list