From 456b3769407f97ffb767f91d69435eb240c37a96 Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Tue, 13 Aug 1996 20:50:54 +0000 Subject: [PATCH] pthread_cond_destroy: EBUSY case now uses Thread_queue_First --- c/src/exec/posix/src/cond.c | 2 +- cpukit/posix/src/cond.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c index 878325acc9..e7e03c6e6d 100644 --- a/c/src/exec/posix/src/cond.c +++ b/c/src/exec/posix/src/cond.c @@ -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 ); diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index 878325acc9..e7e03c6e6d 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -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 );