Re: [orbitcpp-list] Re: perform_work, pending_work, can't work when blocking
Status: Beta
Brought to you by:
philipd
From: <MHL...@t-...> - 2000-12-30 12:41:29
|
On Don, 21 Dez 2000 09:08:59 Brian May wrote: > [...] > > 1. What is the glib even loop? Is it or isn't it supported by ORBit? "glib event loop" refers to a set of functions defined by the library glib which can be invoced on a datastructure called GMainLoop. This datastructure e.g. holds timeouts or file descriptors to poll. If you want to use the glib event loop you - allocate the data structure - register timeouts and file descriptors - call g_main_run or repeatadly call g_main_iteration. (See glib/gmain.h) ORBit currenctly doesn't register its file descriptors for the glib event loop but uses its own algorithms. ORBit-mt _does_ use the event loop so it is no problem to register your own timeouts etc. which then coexist with ORBit's file descriptors. If you look in CVS for the ORBit2 sources you can see that once finished, ORBit2 will most likely use the glib event loop. _______________________________________________________________________ + --Martin. `*' /.\ /°.°\ _ /'°'\ (_) /'°'.°\ ,_. ,_, Merry X-Mas ~~[_]~~ (_) |ü| |