Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopThread ¶
type NoopThread struct{}
NoopThread is used to disable threading.
func NewNoopThread ¶
func NewNoopThread() *NoopThread
NewNoopThread creates a new thread that does no threading.
type OSThread ¶
type OSThread struct {
// contains filtered or unexported fields
}
OSThread represents an OS thread.
func NewOSThread ¶
func NewOSThread() *OSThread
NewOSThread creates a new thread.
It is assumed that the OS thread is fixed by runtime.LockOSThread when NewOSThread is called.
func (*OSThread) Call ¶
func (t *OSThread) Call(f func())
Call calls f on the thread.
Do not call this from the same thread. This would block forever.
Call blocks if Loop is not called.
Click to show internal directories.
Click to hide internal directories.