executor

package
v0.0.0-...-fee78ac Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUEUE_SIZE = 10
	WORKER_NUM = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func NewExecutor

func NewExecutor(pool *ExecutorPool) *Executor

func (*Executor) CancelTask

func (executor *Executor) CancelTask()

func (*Executor) Start

func (executor *Executor) Start(ctx context.Context)

func (*Executor) Stop

func (executor *Executor) Stop()

type ExecutorPool

type ExecutorPool struct {
	// contains filtered or unexported fields
}
var OCS_EXECUTOR_POOL *ExecutorPool

func NewExecutorPool

func NewExecutorPool() *ExecutorPool

func (*ExecutorPool) AddTask

func (pool *ExecutorPool) AddTask(taskID int64)

func (*ExecutorPool) CancelTask

func (pool *ExecutorPool) CancelTask(taskID int64)

func (*ExecutorPool) RemoveTask

func (pool *ExecutorPool) RemoveTask(taskID int64)

func (*ExecutorPool) Start

func (pool *ExecutorPool) Start()

func (*ExecutorPool) Stop

func (pool *ExecutorPool) Stop()

type ReadyTask

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

type Synchronizer

type Synchronizer struct {
	// contains filtered or unexported fields
}
var OCS_SYNCHRONIZER *Synchronizer

func NewSynchronizer

func NewSynchronizer(coordinator *coordinator.Coordinator) *Synchronizer

func (*Synchronizer) Restart

func (synchronizer *Synchronizer) Restart()

func (*Synchronizer) Start

func (synchronizer *Synchronizer) Start()

func (*Synchronizer) Stop

func (synchronizer *Synchronizer) Stop() *context.Context

func (*Synchronizer) Sync

func (synchronizer *Synchronizer) Sync()

Jump to

Keyboard shortcuts

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