提交 3bf78788 编写于 作者: E erdgeist

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

上级 a6b83118
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册