GLib:ERROR...
nunofaria
nunofaria11 at gmail.com
Wed Sep 2 08:53:33 PDT 2009
Thanks, I'll try it.
Simon McVittie-6 wrote:
>
> On Wed, 02 Sep 2009 at 08:00:30 -0700, nunofaria wrote:
>> GLib:ERROR:/build/buildd/glib2.0-2.20.1/glib/gmain.c:1817:g_main_dispatch:
>> assertion failed: (current->dispatching_sources == ¤t_source_link)
>>
>> I'm using DBusGmainLoop to connect to pidgin and record any status
>> change,
>> these functions are being imported by another file and running on
>> threads.
>
> Sounds familiar: you had a problem to solve, you solved it with threads,
> and
> now you have two problems? :-)
>
> Multi-threading in libdbus is meant to work, although there have been
> bugs. Multi-threading in dbus-glib is poorly tested, and I think there are
> still some implicit single-thread assumptions in places.
>
> My standard advice for interacting with D-Bus is to do everything in an
> asynchronous (event-driven) way, in a mainloop running in your main
> thread.
>
> If you want to use threads for something else, pass events between the
> main
> (D-Bus) thread and the worker threads via an appropriate thread-safe data
> structure, like GAsyncQueue or (if you don't care whether you're portable
> beyond Unix) a pipe-to-self.
>
> Simon
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
--
View this message in context: http://www.nabble.com/GLib%3AERROR...-tp25259281p25260348.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.
More information about the dbus
mailing list