[omniORB] Main Thread Mode - POA Questions

Craig Wright craig.wright at cometsolutions.com
Mon Nov 17 12:56:16 GMT 2003


On Sunday 16 November 2003 14:17, Duncan Grisby wrote:
> On Thursday 13 November, Craig Wright wrote:
> > Thank you. This is what I was looking for, however the line:
> >
> > root_poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL)
> >
> > should have (for my case) been:
> >
> > root_poa->create_thread_policy(PortableServer::MAIN_THREAD_MODEL)
>
> Unless you have a very very good reason, you should not use the main
> thread model. For the vast majority of situations, the single thread
> model is sufficient, and it's much more efficient.

The code that is being executed by the invocation of CORBA objects crashes the 
program when the main thread is not executing it.... I also do not have the 
source code for it. I believe this is a very very very good reason... :) 
Correct me if I'm wrong.

-Craig.

>
> Cheers,
>
> Duncan.

-- 
| Craig W. Wright
| Software Engineer
| craig.wright at cometsolutions.com
| (505) 323-2525
|
| Comet Solutions, Inc.
| 11811 Menaul Blvd. NE, Suite #1
| Albuquerque, NM
| USA





More information about the omniORB-list mailing list