Skip to content

Commit 7391067

Browse files
tiifRalfJung
andauthored
Update write synchronisation comment
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 7821485 commit 7391067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/unix/linux/eventfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl FileDescription for Event {
111111
// Else, block.
112112
match self.counter.checked_add(num) {
113113
Some(new_count @ 0..=MAX_COUNTER) => {
114-
// Synchronize with all prior `write` calls to this FD.
114+
// Future `read` calls will synchronize with this write, so update the FD clock.
115115
if let Some(clock) = &ecx.release_clock() {
116116
self.clock.join(clock);
117117
}

0 commit comments

Comments
 (0)