xserver

package
v0.0.0-...-d8427d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventThread

type EventThread struct {
	sync.Mutex
	// contains filtered or unexported fields
}

EventThread is a thread that polls (sadly) for X events, notifying an channel whenever an event occurs, so it may be reacted to.

func NewEventThread

func NewEventThread(logger log15.Logger, outCh chan<- struct{}) *EventThread

NewEventThread creates a new instance of event thread.

func (*EventThread) Start

func (t *EventThread) Start() error

Start attempts to stop the event thread.

func (*EventThread) Stop

func (t *EventThread) Stop() error

Stop attempts to stop the event thread.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL