Documentation ¶
Overview ¶
Package eventfd wraps Linux's eventfd(2) syscall.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eventfd ¶
type Eventfd struct {
// contains filtered or unexported fields
}
Eventfd represents a Linux eventfd object.
func (Eventfd) FD ¶
FD returns the underlying file descriptor. Use with care, as this breaks the Eventfd abstraction.
func (Eventfd) Notify ¶
Notify alerts other users of the eventfd. Users can receive alerts by calling Wait or Read.
func (Eventfd) Read ¶
Read blocks until eventfd is non-zero (i.e. someone calls Notify or Write) and returns the value read.
Click to show internal directories.
Click to hide internal directories.