]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Locks tested. Got the test routine wrong -> Fixed.
authorerdgeist <>
Tue, 6 Nov 2007 01:25:36 +0000 (01:25 +0000)
committererdgeist <>
Tue, 6 Nov 2007 01:25:36 +0000 (01:25 +0000)
mutex.c

diff --git a/mutex.c b/mutex.c
index 319494918c9852031e661d4e7f85fd29ba852099..5c14e4555ddb811e2121ca06c23440795d4c9632 100644 (file)
--- a/mutex.c
+++ b/mutex.c
@@ -53,7 +53,7 @@ static void bucket_remove( int bucket ) {
 
 void mutex_bucket_lock( int bucket ) {
   pthread_mutex_lock( &bucket_mutex );
-  while( !bucket_check( bucket ) )
+  while( bucket_check( bucket ) )
     pthread_cond_wait( &bucket_being_unlocked, &bucket_mutex );
   bucket_push( bucket );
   pthread_mutex_unlock( &bucket_mutex );