From 68606f4ed57fe9b46b041ec73a720e5e3fa270cb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Jan 2000 11:57:59 +0000 Subject: [PATCH] (queue_is_empty): New function. --- linuxthreads/queue.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linuxthreads/queue.h b/linuxthreads/queue.h index f87322f84ad..28bd75531c2 100644 --- a/linuxthreads/queue.h +++ b/linuxthreads/queue.h @@ -54,3 +54,8 @@ static inline int remove_from_queue(pthread_descr * q, pthread_descr th) } return 0; } + +static inline int queue_is_empty(pthread_descr * q) +{ + return *q == NULL; +} -- 2.47.2