mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 22:07:15 +00:00
pthread_cond_destroy: EBUSY case now uses Thread_queue_First
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user