diff options
| -rw-r--r-- | mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -53,7 +53,7 @@ static void bucket_remove( int bucket ) { | |||
| 53 | 53 | ||
| 54 | void mutex_bucket_lock( int bucket ) { | 54 | void 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 ); |
