[omniORB] How to write single threaded hydrid application..

Alex Tingle alex.omniorb at firetree.net
Fri Feb 25 14:37:49 GMT 2005


Hi Shashi,

> I think orb->run method is blocking in nature.

ORB::run() doesn't usually do anything EXCEPT block!

> Just wondering how can I write single threaded app which needs to do
> non corba stuff also(i.e I can't allow main thread to block in
> orb->run call)? Is there any alternative available?

You need to instantiate your objects in a POA that has MAIN_THREAD policy. Then, instead of calling ORB::run(), use ORB::work_pending() & ORB::perform_work().

regards,

-Alex

-- 
:: alex tingle
:: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the omniORB-list mailing list