Notify alerts other users of the eventfd. Users can receive alerts by calling Wait or Read.
()
| 72 | // Notify alerts other users of the eventfd. Users can receive alerts by |
| 73 | // calling Wait or Read. |
| 74 | func (ev Eventfd) Notify() error { |
| 75 | return ev.Write(1) |
| 76 | } |
| 77 | |
| 78 | // Write writes a specific value to the eventfd. |
| 79 | func (ev Eventfd) Write(val uint64) error { |