Documentation
¶
Overview ¶
Package loop is the single-threaded event loop that owns compositor state.
Index ¶
- Variables
- func Monotonic() time.Duration
- func NewManual(start time.Duration) (*Loop, *Manual, error)
- type Events
- type Loop
- func (l *Loop) AddFD(fd int, events Events, handler func(Events) error) (*Source, error)
- func (l *Loop) AddSignals(handler func(os.Signal) error, sigs ...os.Signal) (*Signals, error)
- func (l *Loop) AddTimer(handler func() error) (*Timer, error)
- func (l *Loop) BeforeIdle(f func() error)
- func (l *Loop) BeforeWait(f func() error)
- func (l *Loop) Busy() time.Duration
- func (l *Loop) Close() error
- func (l *Loop) Hand(what string, f func() error)
- func (l *Loop) Idle(f func() error)
- func (l *Loop) Now() time.Duration
- func (l *Loop) Once(fd int, handler func() error) error
- func (l *Loop) Post(f func() error) error
- func (l *Loop) Run() error
- func (l *Loop) Stop()
- func (l *Loop) Virtual() bool
- func (l *Loop) Wakeups() int
- type Manual
- func (m *Manual) Follow(source func() time.Duration)
- func (m *Manual) NextFrame() (time.Duration, bool)
- func (m *Manual) NextTimer() (time.Duration, bool)
- func (m *Manual) Now() time.Duration
- func (m *Manual) Set(now time.Duration)
- func (m *Manual) WaitAtMost(d time.Duration)
- func (m *Manual) WhenDry(f func())
- type Serial
- type Signals
- type Source
- type Timer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("loop: closed")
Functions ¶
Types ¶
type Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
func (*Loop) AddSignals ¶
func (*Loop) BeforeIdle ¶
func (*Loop) BeforeWait ¶
type Manual ¶
type Manual struct {
// contains filtered or unexported fields
}
func (*Manual) WaitAtMost ¶
Click to show internal directories.
Click to hide internal directories.