File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change
1
+ ` EventFd::defuse() ` is removed because it does nothing, ` EventFd::arm() ` is also removed for symmetry reasons.
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl EpollEvent {
88
88
/// epoll.add(&eventfd, EpollEvent::new(EpollFlags::EPOLLIN,DATA))?;
89
89
///
90
90
/// // Arm eventfd & Time wait
91
- /// eventfd.arm( )?;
91
+ /// eventfd.write(1 )?;
92
92
/// let now = Instant::now();
93
93
///
94
94
/// // Wait on event
Original file line number Diff line number Diff line change @@ -58,20 +58,6 @@ impl EventFd {
58
58
Self :: from_value_and_flags ( init_val, EfdFlags :: empty ( ) )
59
59
}
60
60
61
- /// Arms `self`, a following call to `poll`, `select` or `epoll` will return immediately.
62
- ///
63
- /// [`EventFd::write`] with `1`.
64
- pub fn arm ( & self ) -> Result < usize > {
65
- self . write ( 1 )
66
- }
67
-
68
- /// Defuses `self`, a following call to `poll`, `select` or `epoll` will block.
69
- ///
70
- /// [`EventFd::write`] with `0`.
71
- pub fn defuse ( & self ) -> Result < usize > {
72
- self . write ( 0 )
73
- }
74
-
75
61
/// Enqueues `value` triggers, i.e., adds the integer value supplied in `value`
76
62
/// to the counter.
77
63
///
You can’t perform that action at this time.
0 commit comments