[omniORB] GUI and OmniORB Event loop
Dmitry Botcharnikov
dimab@garant.ru
Fri, 26 Oct 2001 16:28:35 +0400
This is a multi-part message in MIME format.
------=_NextPart_000_00B1_01C15E3B.42427EA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I guess you can invoke ORB::Run() in other thread, and leave main thread =
process GUI event loop
Best regards,
Dmitry Botcharnikov
----- Original Message -----=20
From: Fr=E9d=E9ric Prin=20
To: omni=20
Sent: 26 ??????? 2001 ?. 15:57
Subject: [omniORB] GUI and OmniORB Event loop
Hello all,
My app have a GUI and is a CORBA client/server.
What's the best solution to have a GUI main loop with the CORBA =
ORB::Run() loop running together in the same process of course ?
With ORBacus I use an API funtion :=20
=20
reactor =3D GetX11Reactor() // return the CORBA message reactor=20
and then give the reactor reference to a special=20
ORB_Init(....., reactor);
In this way, the CORBA loop also manage the GUI event without invoking =
the GUI main loop.
=20
Is there a similar API in OmniORB ?
I'm not familiar with GUI main loop in UNIX app. If someone has an =
idea on how to do please fill free to tell me !
Thanks
| Fr=E9d=E9ric Prin - Senior software engineer
| Tel 04 56 38 10 33
| S I L V A C O G . R E . C E
------=_NextPart_000_00B1_01C15E3B.42427EA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I guess you can invoke ORB::Run() in other thread, =
and leave=20
main thread process GUI event loop</FONT></DIV>
<DIV><FONT size=3D2>Best regards,</FONT></DIV>
<DIV><FONT size=3D2>Dmitry Botcharnikov</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A href=3D"mailto:frederic.prin@silvaco.com"=20
title=3Dfrederic.prin@silvaco.com>Fr=E9d=E9ric Prin</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
href=3D"mailto:omniorb-list@uk.research.att.com"=20
title=3Domniorb-list@uk.research.att.com>omni</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> 26 =
октября 2001 г. =
15:57</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [omniORB] GUI and =
OmniORB Event=20
loop</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>My app have a GUI and is a CORBA=20
client/server.</FONT><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What's the best solution to have a =
GUI main loop=20
with the CORBA ORB::Run() loop running together in the same process of =
course=20
?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>With ORBacus I use an API funtion : =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> reactor =3D=20
GetX11Reactor() // return the CORBA message reactor </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>and then give the reactor reference =
to a special=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> ORB_Init(.....,=20
reactor);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>In this way, the CORBA loop also =
manage the GUI=20
event without invoking the GUI main loop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there a similar API in OmniORB =
?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm not familiar with GUI main loop =
in UNIX app.=20
If someone has an idea on how to do please fill free to tell me =
!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>| Fr=E9d=E9ric Prin - Senior software =
engineer<BR>|=20
Tel 04 56 38 10 33<BR>| S I L V A C O G . R E . C=20
E<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00B1_01C15E3B.42427EA0--