[omniORB] How can I get control after all orb->run()

Duncan Grisby dgrisby@uk.research.att.com
Thu, 02 Aug 2001 11:36:46 +0100


On Thursday 2 August, zhangzq71 wrote:

> I think you do not understand what I mean, let me say that a 
> prgram has two things to do, one is acted the CORBA servant, 
> another is a waitting for user input, when user hit a key, 
> the program exit, if the program just has only one main 
> thread, how this will be achieved? Because after calling orb->run().

omniORB is _always_ multi-threaded. You do not need to call
orb->run(). Ever. It will still dispatch calls. Just block waiting for
a key press, and the ORB will work in the background.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --