Multiuser, Capabilities and Access Controls (#54)
[lunaix-os.git] / lunaix-os / kernel / ds / waitq.c
index c1028828543d4d39dd081ab5f00f9b0c93a5d33f..e67c44d7c1ca7e37c32281f450f3e454e1c63928 100644 (file)
@@ -12,7 +12,7 @@ __try_wait(bool check_stall)
     if (waitq_empty(current_wq)) {
         return;
     }
-    
+
     block_current_thread();
 
     if (!check_stall) {
@@ -54,7 +54,7 @@ pwait_check_stall(waitq_t* queue)
 void
 pwake_one(waitq_t* queue)
 {
-    if (llist_empty(&queue->waiters)) {
+    if (waitq_empty(queue)) {
         return;
     }
 
@@ -69,7 +69,7 @@ pwake_one(waitq_t* queue)
 void
 pwake_all(waitq_t* queue)
 {
-    if (llist_empty(&queue->waiters)) {
+    if (waitq_empty(queue)) {
         return;
     }