epoll: fix comment typo
This commit is contained in:
parent
7d38c51555
commit
33f4d2ee61
2 changed files with 2 additions and 2 deletions
|
|
@ -539,7 +539,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
|
|||
)?;
|
||||
if is_updated {
|
||||
// Edge-triggered notification only notify one thread even if there are
|
||||
// multiple threads block on the same epfd.
|
||||
// multiple threads blocked on the same epfd.
|
||||
|
||||
// This unwrap can never fail because if the current epoll instance were
|
||||
// closed, the upgrade of weak_epoll_interest
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use std::thread;
|
|||
// 2. Thread 2 blocks.
|
||||
// 3. Thread 3 unblocks both thread 1 and thread 2.
|
||||
// 4. Thread 1 reads.
|
||||
// 5. Thread 2's `read` can neber complete -> deadlocked.
|
||||
// 5. Thread 2's `read` can never complete -> deadlocked.
|
||||
|
||||
fn main() {
|
||||
// eventfd write will block when EFD_NONBLOCK flag is clear
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue