This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Thread test code?


Sascha Ziemann <szi@aibon.ping.de> writes:

> Sure! It's no reason to do not use threads in general, but he said, that
> it should work with gnome-guile. And this means Gtk.

Sorry...  I missed that.

Anyway, I don't think there is any problem using gnome-guile with
threads enabled as long as the user doesn't try to access GTk from two
threads simultaneously, except possibly for one thing:

Very probably, you are using some kind of I/O blocking in your event
broker.  When gnome-guile is compiled with threads enabled and the
user is trying to run threads in parallel to your event broker, then
those threads will be blocked.

If it is possible for you to block using scm_internal_select instead
of select, this problem disappears.  You will not have any drawbacks
from this when compiling without threads since, in that case,
scm_internal_select is simply #defined to be ordinary select.

Best regards,
/mdj