From: Willem van Engen <wvengen@st...> - 2002-08-01 08:28:21
I'm writing a plugin for gaim and would love to use threads, e.g.
gaim_plugin_init takes quite a while at the moment and I'd like to
create a thread to do some time-consuming things. But a 'grep threads *'
in gaim's source reveals nothing. So is it possible without patching
gaim? I could of course
if (!g_thread_supported()) g_thread_init(NULL);
in gaim_plugin_init, but I doubt if gtk would like that in the middle
of gtk_main. And then gaim is linked without pthread support.
So why doesn't gaim use threads in the first place, is that a decision
made for portability, lightweightness or whatever, or is it just that
the need hasn't arisen?
ps please cc me since I'm not on the list.