The following commit has been merged in the master branch:
commit ddeaad599c6b93634916e76fa2747ba521441e3f
Merge: 1fc5eaa14734a6bc3ed378eb09a7f61a875f2b19
db7bf9590dc08a72de9a9c46db7937188156fa2e
Author: Samuel Thibault <[email protected]>
Date: Tue Dec 6 01:42:34 2011 +0100
Merge branch 'libpthread' into libpthread-moved
diff --combined libpthread/pthread/cthreads-compat.c
index e0536ef,cbe8170..cbe8170
--- a/libpthread/pthread/cthreads-compat.c
+++ b/libpthread/pthread/cthreads-compat.c
@@@ -100,5 -100,8 +100,8 @@@ __mutex_lock_solid (void *lock
void
__mutex_unlock_solid (void *lock)
{
+ if (__pthread_spin_trylock (lock) != 0)
+ /* Somebody already got the lock, that one will manage waking up others */
+ return;
__pthread_mutex_unlock (lock);
}
--
Debian GNU Hurd packaging