mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
fs/eventfd/timerfd: update sem next to avoid busy loop
Build Documentation / build-html (push) Has been cancelled
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:
committed by
Alan C. Assis
parent
50c78843b4
commit
12079a213d
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user