pthread_cond_destroy: EBUSY case now uses Thread_queue_First

This commit is contained in:
Mark Johannes
1996-08-13 20:50:54 +00:00
parent c53eb2c3e7
commit 456b376940
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ int pthread_cond_destroy(
&the_cond->Object
);
if ( _Thread_queue_Get_number_waiting( &the_cond->Wait_queue ) )
if ( _Thread_queue_First( &the_cond->Wait_queue ) )
return EBUSY;
_POSIX_Condition_variables_Free( the_cond );

View File

@@ -261,7 +261,7 @@ int pthread_cond_destroy(
&the_cond->Object
);
if ( _Thread_queue_Get_number_waiting( &the_cond->Wait_queue ) )
if ( _Thread_queue_First( &the_cond->Wait_queue ) )
return EBUSY;
_POSIX_Condition_variables_Free( the_cond );