diff options
Diffstat (limited to 'linuxthreads/queue.h')
-rw-r--r-- | linuxthreads/queue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads/queue.h b/linuxthreads/queue.h index f87322f84a..28bd75531c 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; +} |