Expand description
Linux eventfd implementation.
Re-exportsΒ§
use std::cell::Cell;πuse std::cell::RefCell;πuse std::io;πuse std::io::ErrorKind;πuse crate::concurrency::VClock;πuse crate::shims::files::FileDescription;πuse crate::shims::files::FileDescriptionRef;πuse crate::shims::unix::UnixFileDescription;πuse crate::*;π
StructsΒ§
- EventFd π
- A kind of file descriptor created by
eventfd. TheEventtype isnβt currently written to byeventfd. The interface is meant to keep track of objects associated with a file descriptor. For more information see the man page below:
ConstantsΒ§
- MAX_
COUNTER π - Maximum value that the eventfd counter can hold.
TraitsΒ§
FunctionsΒ§
- eventfd_
read π - Block thread if the current counter is 0, else just return the current counter value to the caller and set the counter to 0.
- eventfd_
write π - Block thread if the value addition will exceed u64::MAX -1, else just add the user-supplied value to current counter.