Re: ORBit 0.5.17 CORBA_ORB_perform_work implementation
- From: <dahaverk rockwellcollins com>
- To: michael ximian com
- Cc: matt trpz com, orbit-list gnome org
- Subject: Re: ORBit 0.5.17 CORBA_ORB_perform_work implementation
- Date: Tue, 10 Sep 2002 09:15:39 -0500
It may be a synonym... But books on CORBA show the "perform_work" as an
exposed to the user function to use.
> Apart from that it looks fine ;-) As you can see - perhaps there is a
> reason why this method hasn't been implemented - it's a synonym for
> giop_main_iterate (FALSE);
e.g. from "Pure CORBA" By Fintan Bolton...
For as Single-Threaded client he say s us the CORBA::ORB::perform_work()
operation instead of the CORBA::ORB::run(). The perform_work() operation
does not block indefinitely and returns after a certain number of
invocations have bee processed. The exact behavior of the perform_work()
function is implementation dependent. This allows you to write an event
loop to integrate with the other activities of the client application.
// C++ style example...
keep_running = TRUE;
while( keep_running) {
if (orb->work_pending() ) { orb->perform_work() ; }
process_user_gui_input();
}
Later,
-Dave
Michael Meeks <michael@ximian.com>@gnome.org on 08/28/2002 04:30:47 AM
Sent by: orbit-list-admin@gnome.org
To: Matt Doar <matt@trpz.com>
cc: orbit <orbit-list@gnome.org>
Subject: Re: ORBit 0.5.17 CORBA_ORB_perform_work implementation
Hi Matt,
On Tue, 2002-08-27 at 21:16, Matt Doar wrote:
> The following suspiciously simple two line fix seemed to implement it.
> Would anyone care to glance at it and comment on its correctness?
Surely the 'custom_run_setup' is done by the CORBA_ORB_init;
Apart from that it looks fine ;-) As you can see - perhaps there is a
reason why this method hasn't been implemented - it's a synonym for
giop_main_iterate (FALSE);
Incidentally though - you should be using ORBit2 - then we can fold
fixes back in ( and it's much cleaner / stabler / maintained ).
Also - it's really inefficient to do mainloop graunching like that; You
probably want to do something with polling I would have thought.
Regards,
Michael.
--
mmeeks@gnu.org <><, Pseudo Engineer, itinerant idiot
_______________________________________________
orbit-list mailing list
orbit-list@gnome.org
http://mail.gnome.org/mailman/listinfo/orbit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]