fs/eventfd/timerfd: update sem next to avoid busy loop
Build Documentation / build-html (push) Has been cancelled

fix bug about busy loop

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2024-12-21 18:26:25 +08:00
committed by Alan C. Assis
parent 50c78843b4
commit 12079a213d
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -255,6 +255,8 @@ static int eventfd_blocking_io(FAR struct eventfd_priv_s *dev,
cur_sem->next = sem->next;
break;
}
cur_sem = cur_sem->next;
}
}
+2
View File
@@ -259,6 +259,8 @@ static int timerfd_blocking_io(FAR struct timerfd_priv_s *dev,
cur_sem->next = sem->next;
break;
}
cur_sem = cur_sem->next;
}
}
}