v1.1.43 hangs with GLib/GDK threads

Marcus Brinkmann Marcus.Brinkmann@ruhr-uni-bochum.de
Tue, 9 Sep 2003 09:08:26 +0200


On Mon, Sep 08, 2003 at 02:41:18PM -0700, lowhalo@hush.com wrote:
> > What the h... are glib threads?
> 
> http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html

This tells me what interface they implement, but not how they are
implemented.

libglib-2.0 doesn't seem to be linked to pthread.  So if glib threads are
entirely user level threads, it would be wrong to use it with
gcrypt-pthread, and that alone might trigger errors, depending on how you
link your program.

With user-level threads, it is probably sufficient to just link with plain
gcrypt.  However, I don't know if glib ensures that it is user-level or if
it might us system threads.  I don't think libgcrypt uses any of the
blocking system calls (read, write, select, ...) so it would not be
"preempted" by a user-level thread package and thus using the non-threaded
version would be safe.

Depsite all this, there might also be a bug in our thread support, of
course.  We can try to find out more about that.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/