Skip to content

Commit

Permalink
重构TaskPool实现 #80 中讨论的初始协程数量、核心协程数量和最大协程数量 (#93)
Browse files Browse the repository at this point in the history
* 重构TaskPool实现 #80 中讨论的新需求

Signed-off-by: longyue0521 <longyueli0521@gmail.com>

* 删除测试中未使用参数并修改CHANGELOG

Signed-off-by: longyue0521 <longyueli0521@gmail.com>

* 将concurrency重命名为initGo,totalNumOfGo重命名为totalGo

* 去掉调度循环,创建协程的时机改为Submit及Start方法内,解决CPU空转问题

Signed-off-by: longyue0521 <longyueli0521@gmail.com>
  • Loading branch information
longyue0521 committed Sep 23, 2022
1 parent 25b0743 commit 644ced1
Show file tree
Hide file tree
Showing 3 changed files with 872 additions and 103 deletions.
3 changes: 2 additions & 1 deletion .CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@
- [syncx: 使用泛型封装 sync.Map](https://github.com/gotomicro/ekit/pull/79)
- [slice: 支持 Diff*, Intersection*, Union*, Index* 类方法](https://github.com/gotomicro/ekit/pull/83)
- [slice: 聚合函数 Max, Min 和 Sum](https://github.com/gotomicro/ekit/pull/82)
- [slice: FilterMap 和 Delete 方法](https://github.com/gotomicro/ekit/pull/91)
- [slice: FilterMap 和 Delete 方法](https://github.com/gotomicro/ekit/pull/91)
- [pool: 重构TaskPool](https://github.com/gotomicro/ekit/pull/93)
Loading

0 comments on commit 644ced1

Please sign in to comment.