Locks tested. Got the test routine wrong -> Fixed.

This commit is contained in:
Dirk Engling 2007-11-06 01:25:36 +00:00
parent aa25c390dd
commit ec950245bf
1 changed files with 1 additions and 1 deletions

View File

@ -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 );