Skip to content

Commit 94dd171

Browse files
tiifRalfJung
andcommitted
Update comments for read synchronisation
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 984f4f9 commit 94dd171

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
@@ -64,7 +64,7 @@ impl FileDescription for Event {
6464
throw_unsup_format!("eventfd: blocking is unsupported");
6565
}
6666
} else {
67-
// Future `read` calls will synchronize with this write, so update the FD clock.
67+
// Synchronize with all prior `write` calls to this FD.
6868
ecx.acquire_clock(&self.clock);
6969
// Return the counter in the host endianness using the buffer provided by caller.
7070
*bytes = match ecx.tcx.sess.target.endian {

0 commit comments

Comments
 (0)