ebiten: github.com/hajimehoshi/ebiten/internal/thread Index | Files

package thread

import "github.com/hajimehoshi/ebiten/internal/thread"

Index

Package Files

thread.go

type Thread Uses

type Thread struct {
    // contains filtered or unexported fields
}

Thread represents an OS thread.

func New Uses

func New() *Thread

New creates a new thread.

It is assumed that the OS thread is fixed by runtime.LockOSThread when New is called.

func (*Thread) Call Uses

func (t *Thread) Call(f func() error) error

Call calls f on the thread.

Do not call this from the same thread. This would block forever.

func (*Thread) Loop Uses

func (t *Thread) Loop(context context.Context)

Loop starts the thread loop.

Loop must be called on the thread.

Package thread imports 2 packages (graph) and is imported by 2 packages. Updated 2019-06-11. Refresh now. Tools for package owners.