eThreadPool

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package eThreadPool 线程池工具,基于 SizedWaitGroup 实现对并发任务数量的控制与等待, 用于简化批量任务的协同执行与生命周期管理。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E线程池

type E线程池 struct {
	// contains filtered or unexported fields
}

func New线程池

func New线程池(最大任务数量 int) *E线程池

New线程池

func (*E线程池) E初始化

func (this *E线程池) E初始化(最大任务数量 int)

E初始化

func (*E线程池) E加入任务

func (this *E线程池) E加入任务()

E加入任务

func (*E线程池) E完成

func (this *E线程池) E完成()

E完成

func (*E线程池) E等待任务完成

func (this *E线程池) E等待任务完成()

E等待任务完成

type E读写共享锁

type E读写共享锁 struct {
	// contains filtered or unexported fields
}

func New读写共享锁

func New读写共享锁() *E读写共享锁

New读写共享锁 创建一个读写共享锁

func (*E读写共享锁) E开始写

func (this *E读写共享锁) E开始写()

E开始写

func (*E读写共享锁) E开始读

func (this *E读写共享锁) E开始读()

E开始读

func (*E读写共享锁) E结束写

func (this *E读写共享锁) E结束写()

E结束写

func (*E读写共享锁) E结束读

func (this *E读写共享锁) E结束读()

E结束读

Jump to

Keyboard shortcuts

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