pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthread_mutex_unlock



On Wed, Jan 17, 2007 at 04:17:07PM -0500, David H. Gutteridge wrote:
> This isn't really something that's fair for pkgsrc to tackle, from what
> I could see from the code.  (So my PR should probably be suspended or
> closed.)  To second Joerg's comment, in the gtkui.c code (as of mid-
> 2005 anyway), the code is a bit tangled up in the sense that there can
> be multiple calls of GDK_THREADS_LEAVE(), and it's not a simple matter
> of changing a line or two; it appeared to me that there were multiple
> potential points of entry to several code blocks that were causing the
> exceptions.

Well, some possible solutions are:
- make the mutex recursive
- split the function into a outer version which does the locking and an
  inner function which expects it.

I'd prefer the latter of course, but I don't use this and don't care
about it either.

Joerg



Home | Main Index | Thread Index | Old Index