summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutex.c b/mutex.c
index 3194949..5c14e45 100644
--- a/mutex.c
+++ b/mutex.c
@@ -53,7 +53,7 @@ static void bucket_remove( int bucket ) {
53 53
54void mutex_bucket_lock( int bucket ) { 54void mutex_bucket_lock( int bucket ) {
55 pthread_mutex_lock( &bucket_mutex ); 55 pthread_mutex_lock( &bucket_mutex );
56 while( !bucket_check( bucket ) ) 56 while( bucket_check( bucket ) )
57 pthread_cond_wait( &bucket_being_unlocked, &bucket_mutex ); 57 pthread_cond_wait( &bucket_being_unlocked, &bucket_mutex );
58 bucket_push( bucket ); 58 bucket_push( bucket );
59 pthread_mutex_unlock( &bucket_mutex ); 59 pthread_mutex_unlock( &bucket_mutex );