diff options
Diffstat (limited to 'cpukit/posix/src/prwlockdestroy.c')
-rw-r--r-- | cpukit/posix/src/prwlockdestroy.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/posix/src/prwlockdestroy.c b/cpukit/posix/src/prwlockdestroy.c index f3e08add06..a675b90757 100644 --- a/cpukit/posix/src/prwlockdestroy.c +++ b/cpukit/posix/src/prwlockdestroy.c @@ -49,7 +49,12 @@ int pthread_rwlock_destroy( /* * If there is at least one thread waiting, then do not delete it. */ - if ( _Thread_queue_First( &the_rwlock->RWLock.Wait_queue ) != NULL ) { + if ( + _Thread_queue_First( + &the_rwlock->RWLock.Wait_queue, + CORE_RWLOCK_TQ_OPERATIONS + ) != NULL + ) { _Objects_Put( &the_rwlock->Object ); _Objects_Allocator_unlock(); return EBUSY; |