diff options
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/pthread/cthreads-compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/pthread/cthreads-compat.c b/libpthread/pthread/cthreads-compat.c index e0536ef2..cbe8170e 100644 --- a/libpthread/pthread/cthreads-compat.c +++ b/libpthread/pthread/cthreads-compat.c @@ -100,5 +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); } |