[omniORB] Win32 Question
Chris Hafey
chafey@prowess.com
Fri, 04 Jun 1999 09:05:36 -0700
At 08:45 AM 6/4/99 -0400, Steven W. Brenneis wrote:
>
>You are initializing the ORB and BOA from the OnInitDialog member of
>your dialog handler class. This method is invoked from the Dialog's
>message handler thread, not from the main thread of the program. This
>can be done but is generally problematic.
I don't believe this is true. A standard MFC application consists of one
thread that runs the MFC message loop and passes dialog messages out to its
dialogs. So the "Dialog message handler thread" is the same thing as the
"main thread of the program". Even if it was a separate thread, I can't
think of any reason this is problematic. Can you explain?
>Also, you have made a single, non-blocking call to the BOA's
>impl_is_ready in the OnInitDialog member function. This will provide a
>single pass through the dispatcher if there is an RPC invocation
>waiting. In order to process further RPC's you will have to make other
>non-blocking calls to impl_is_ready or you will have to have a single
>blocking call somewhere.
This is not true. impl_is_ready(0,true) creates a background thread to
process incoming connections/requests.
Chris Hafey