Gustavo Sverzut Barbieri wrote: > On Mon, Mar 30, 2009 at 10:13 PM, "Marco Trevisan (Treviño)" > <m...@3v1n0.net> wrote: >> Marco Trevisan (Treviño) wrote: >>> Unfortunately testing it with the msn-purple plugin (I've tried also >>> with Facebook, but I've some issues with the certs) the test client >>> attached segfaults. >> I've made one more test using Google Talk (so a jabber server), and now >> I've a different behavior: > > Are you sure any of these functions that call > ecore_{idler,fd_handler,timer}_add are NOT executed from threads? I'm > asking this because glib allows you to call these primitives from > threads if you did g_threads_init()
Well, I've not sure about this (I've not studied so much libpurple, I've done this only in few hours), but it doesn't seem the case. Using looking at the value returned by pthread_self() in various parts of the program (especially putting it in the callback functions), it has returns always the same value. However, the libpurple built-in dns lookup (as commented in the code), is not controlled by the ecore libs, so maybe it could cause the issue I get. > but Ecore does not, in such case > you need to pipe primitives to main thread and fd_handler them, or > ecore_pipe for ready to use. Mhmh... Any example to show? :P > You can know if it's using threads in many ways, one of them is to > printf("thread_id: %#lx\n", pthread_self()); Thanks...! -- Treviño's World - Life and Linux http://www.3v1n0.net/ ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel