diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 21:32:49 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 21:32:49 +0000 |
commit | dce801df4eff1502dfae619ebd115da5824a4006 (patch) | |
tree | af121d52de3aeb156ac73f9baf0b14caaad0d660 | |
parent | pthread_codn_destroy: EBUSY case moved and uses Thread_queue_First (diff) | |
download | rtems-dce801df4eff1502dfae619ebd115da5824a4006.tar.bz2 |
pthread_cond_destroy: added enable dispatch to EBUSY case
-rw-r--r-- | c/src/exec/posix/src/cond.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/cond.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c index 89002876b5..25c175948f 100644 --- a/c/src/exec/posix/src/cond.c +++ b/c/src/exec/posix/src/cond.c @@ -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, diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index 89002876b5..25c175948f 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -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, |