summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/cond.c
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 21:10:06 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 21:10:06 +0000
commit95b76bc02b5e5e9a3dacff3f3839e724b14141f5 (patch)
tree05043f4b81160bd532f7822d4d8e636716fac41b /cpukit/posix/src/cond.c
parentpthread_cond_destroy: EBUSY case now uses Thread_queue_First (diff)
downloadrtems-95b76bc02b5e5e9a3dacff3f3839e724b14141f5.tar.bz2
pthread_codn_destroy: EBUSY case moved and uses Thread_queue_First
Diffstat (limited to 'cpukit/posix/src/cond.c')
-rw-r--r--cpukit/posix/src/cond.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c
index e7e03c6e6d..89002876b5 100644
--- a/cpukit/posix/src/cond.c
+++ b/cpukit/posix/src/cond.c
@@ -256,14 +256,14 @@ int pthread_cond_destroy(
return EINVAL;
case OBJECTS_LOCAL:
+ if ( _Thread_queue_First( &the_cond->Wait_queue ) )
+ return EBUSY;
+
_Objects_Close(
&_POSIX_Condition_variables_Information,
&the_cond->Object
);
- if ( _Thread_queue_First( &the_cond->Wait_queue ) )
- return EBUSY;
-
_POSIX_Condition_variables_Free( the_cond );
if ( the_cond->process_shared == PTHREAD_PROCESS_SHARED ) {