goroutine_mgr

package
v0.0.0-...-8546448 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goroutine

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

func (*Goroutine) GetCancelFunc

func (g *Goroutine) GetCancelFunc() *context.CancelFunc

func (*Goroutine) GetContext

func (g *Goroutine) GetContext() *context.Context

func (*Goroutine) GetId

func (g *Goroutine) GetId() uint64

func (*Goroutine) GetName

func (g *Goroutine) GetName() string

func (*Goroutine) OnQuit

func (g *Goroutine) OnQuit()

type GoroutineManager

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

func (*GoroutineManager) Destroy

func (g *GoroutineManager) Destroy()

func (GoroutineManager) GetGoroutineById

func (g GoroutineManager) GetGoroutineById(goroutineId uint64) *Goroutine

func (GoroutineManager) GoroutineCount

func (g GoroutineManager) GoroutineCount() int

func (*GoroutineManager) GoroutineCreateP0

func (g *GoroutineManager) GoroutineCreateP0(goroutineName string,
	goroutineFunc func(Goroutine)) uint64

func (*GoroutineManager) GoroutineCreateP1

func (g *GoroutineManager) GoroutineCreateP1(goroutineName string,
	goroutineFunc func(Goroutine, interface{}),
	argFunc1 interface{}) uint64

func (*GoroutineManager) GoroutineCreateP2

func (g *GoroutineManager) GoroutineCreateP2(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}) uint64

func (*GoroutineManager) GoroutineCreateP3

func (g *GoroutineManager) GoroutineCreateP3(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}, argFunc3 interface{}) uint64

func (*GoroutineManager) GoroutineCreateP4

func (g *GoroutineManager) GoroutineCreateP4(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}, argFunc3 interface{}, argFunc4 interface{}) uint64

func (*GoroutineManager) GoroutineCreatePn

func (g *GoroutineManager) GoroutineCreatePn(goroutineName string,
	goroutineFunc func(Goroutine, ...interface{}),
	argFunc ...interface{}) uint64

func (*GoroutineManager) GoroutineCreateWithCancelP0

func (g *GoroutineManager) GoroutineCreateWithCancelP0(goroutineName string,
	goroutineFunc func(Goroutine)) (uint64, context.CancelFunc)

func (*GoroutineManager) GoroutineCreateWithCancelP1

func (g *GoroutineManager) GoroutineCreateWithCancelP1(goroutineName string,
	goroutineFunc func(Goroutine, interface{}),
	argFunc1 interface{}) (uint64, context.CancelFunc)

func (*GoroutineManager) GoroutineCreateWithCancelP2

func (g *GoroutineManager) GoroutineCreateWithCancelP2(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}) (uint64, context.CancelFunc)

func (*GoroutineManager) GoroutineCreateWithCancelP3

func (g *GoroutineManager) GoroutineCreateWithCancelP3(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}, argFunc3 interface{}) (uint64, context.CancelFunc)

func (*GoroutineManager) GoroutineCreateWithCancelP4

func (g *GoroutineManager) GoroutineCreateWithCancelP4(goroutineName string,
	goroutineFunc func(Goroutine, interface{}, interface{}, interface{}, interface{}),
	argFunc1 interface{}, argFunc2 interface{}, argFunc3 interface{}, argFunc4 interface{}) (uint64, context.CancelFunc)

func (*GoroutineManager) GoroutineCreateWithCancelPn

func (g *GoroutineManager) GoroutineCreateWithCancelPn(goroutineName string,
	goroutineFunc func(Goroutine, ...interface{}),
	argFunc ...interface{}) uint64

func (GoroutineManager) GoroutineDump

func (g GoroutineManager) GoroutineDump()

func (*GoroutineManager) GoroutineRemove

func (g *GoroutineManager) GoroutineRemove(goroutine *Goroutine)

func (*GoroutineManager) Initialise

func (g *GoroutineManager) Initialise(managerName string)

Jump to

Keyboard shortcuts

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