From: Ulrich Drepper Date: Wed, 12 Jan 2000 11:57:59 +0000 (+0000) Subject: (queue_is_empty): New function. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68606f4ed57fe9b46b041ec73a720e5e3fa270cb;p=thirdparty%2Fglibc.git (queue_is_empty): New function. --- 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; +}