forked from Imagelibrary/rtems
pthread_cond_destroy: added enable dispatch to EBUSY case
This commit is contained in:
@@ -256,8 +256,10 @@ int pthread_cond_destroy(
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|
||||||
if ( _Thread_queue_First( &the_cond->Wait_queue ) )
|
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
|
||||||
|
_Thread_Enable_dispatch();
|
||||||
return EBUSY;
|
return EBUSY;
|
||||||
|
}
|
||||||
|
|
||||||
_Objects_Close(
|
_Objects_Close(
|
||||||
&_POSIX_Condition_variables_Information,
|
&_POSIX_Condition_variables_Information,
|
||||||
|
|||||||
@@ -256,8 +256,10 @@ int pthread_cond_destroy(
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|
||||||
if ( _Thread_queue_First( &the_cond->Wait_queue ) )
|
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
|
||||||
|
_Thread_Enable_dispatch();
|
||||||
return EBUSY;
|
return EBUSY;
|
||||||
|
}
|
||||||
|
|
||||||
_Objects_Close(
|
_Objects_Close(
|
||||||
&_POSIX_Condition_variables_Information,
|
&_POSIX_Condition_variables_Information,
|
||||||
|
|||||||
Reference in New Issue
Block a user