From: Andreas V. <li...@br...> - 2009-05-26 19:07:47
|
Am Tue, 26 May 2009 14:21:35 +0200 schrieb Meier, Andreas: Hello Andreas, I created the version with Ecore integration in the gitorious branch. So if you've problems report them here. I would like to get more feedback about it. If it works for several persons I'll integrate it into the main branch on fd.org. It's not much work to change the Echo example to Ecore main loop. It works the same way as the glib dispatcher. But take caution with the threads in the example. Also the Ecore binding is not thread safe! But as long as you call a Dbus-C++ function from within a Ecore loop callback there will be no problems. regards Andreas > Hello Andreas > > Thank you for your quick answer. > > Fixing the dbus-C++ main-loop was my first idea. Then I learnt of the > existence of the dbus-cplusplus bindings with integrated ecore main > loop. In the meantime I was having a look at that package... > > But after patching the echo example client based on the ecore example > (exchanging DBus::BusDispatcher with DBus::Ecore::BusDispatcher > and introducing ecore main loop handling) it is still failing. > Or is it more complicated to rewrite the echo example to work with the > ecore main loop? > > > ... > > I also played around with the echo example and had various threading > > problems. As long as you use the own main loop dispatcher you'll get > > those problem. You should use the glib or ecore integration to get > > it working. > > > > I've some ideas to get the Dbus-C++ main loop working also with > > threads. But you're right the echo example is broken currently. > > Don't use it currently or change it to use glib and provide a patch. > > ... > > You stated that one should use glib or ecore integration and a > sentence further down you mention glib only. Is the glib integration > better tested > than the ecore one? The ecore integration is more appealing to me > since its memory footprint is much smaller. > > What do you think is more promising with a limited time budget? Fixing > multi-threading issue of dbus-C++ or debugging dbus-cplusplus with > ecore integration? > > Have a good day, > Andreas > |