pthread_cond_destroy: added enable dispatch to EBUSY case

This commit is contained in:
Mark Johannes
1996-08-13 21:32:49 +00:00
parent 95b76bc02b
commit dce801df4e
2 changed files with 6 additions and 2 deletions

View File

@@ -256,8 +256,10 @@ int pthread_cond_destroy(
return EINVAL;
case OBJECTS_LOCAL:
if ( _Thread_queue_First( &the_cond->Wait_queue ) )
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
_Thread_Enable_dispatch();
return EBUSY;
}
_Objects_Close(
&_POSIX_Condition_variables_Information,