git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiuser, Capabilities and Access Controls (#54)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
ds
/
waitq.c
diff --git
a/lunaix-os/kernel/ds/waitq.c
b/lunaix-os/kernel/ds/waitq.c
index c1028828543d4d39dd081ab5f00f9b0c93a5d33f..e67c44d7c1ca7e37c32281f450f3e454e1c63928 100644
(file)
--- a/
lunaix-os/kernel/ds/waitq.c
+++ b/
lunaix-os/kernel/ds/waitq.c
@@
-12,7
+12,7
@@
__try_wait(bool check_stall)
if (waitq_empty(current_wq)) {
return;
}
if (waitq_empty(current_wq)) {
return;
}
-
+
block_current_thread();
if (!check_stall) {
block_current_thread();
if (!check_stall) {
@@
-54,7
+54,7
@@
pwait_check_stall(waitq_t* queue)
void
pwake_one(waitq_t* queue)
{
void
pwake_one(waitq_t* queue)
{
- if (
llist_empty(&queue->waiters
)) {
+ if (
waitq_empty(queue
)) {
return;
}
return;
}
@@
-69,7
+69,7
@@
pwake_one(waitq_t* queue)
void
pwake_all(waitq_t* queue)
{
void
pwake_all(waitq_t* queue)
{
- if (
llist_empty(&queue->waiters
)) {
+ if (
waitq_empty(queue
)) {
return;
}
return;
}