about summary refs log tree commit diff
path: root/linuxthreads/queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/queue.h')
-rw-r--r--linuxthreads/queue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/linuxthreads/queue.h b/linuxthreads/queue.h
index fa8c5d861d..f87322f84a 100644
--- a/linuxthreads/queue.h
+++ b/linuxthreads/queue.h
@@ -43,13 +43,14 @@ static inline pthread_descr dequeue(pthread_descr * q)
   return th;
 }
 
-static inline void remove_from_queue(pthread_descr * q, pthread_descr th)
+static inline int remove_from_queue(pthread_descr * q, pthread_descr th)
 {
   for (; *q != NULL; q = &((*q)->p_nextwaiting)) {
     if (*q == th) {
       *q = th->p_nextwaiting;
       th->p_nextwaiting = NULL;
-      return;
+      return 1;
     }
   }
+  return 0;
 }