mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 06:28:22 +00:00
kernel: use LIST_DEFINE and list_drain
This commit is contained in:
+1
-2
@@ -59,8 +59,7 @@ void vfs_root_event_signal(void) {
|
||||
root_mounted = true;
|
||||
MUTEX_RELEASE(&root_event_mutex);
|
||||
|
||||
list_node_t *node;
|
||||
while ((node = list_pop_front(&root_event_list)) != NULL) {
|
||||
list_drain_front (&root_event_list, node) {
|
||||
root_event_waiter_t *rew = (root_event_waiter_t *)node;
|
||||
rew->fn(rew->ctx);
|
||||
free(rew);
|
||||
|
||||
Reference in New Issue
Block a user