]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(queue_is_empty): New function.
authorUlrich Drepper <drepper@redhat.com>
Wed, 12 Jan 2000 11:57:59 +0000 (11:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 12 Jan 2000 11:57:59 +0000 (11:57 +0000)
linuxthreads/queue.h

index f87322f84ad15aea0e6a1b9e76bdabc853dbf804..28bd75531c24b3680abd56f2263a0bd96b1440e1 100644 (file)
@@ -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;
+}