-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pool: TaskPool 实现 #50 #57
Commits on Aug 27, 2022
-
pool: TaskPool 实现 ecodeclub#50
TaskPool管理有限状态机,TaskExecutor负责启动任务,优雅关闭,强制退出等操作 Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0b47349 - Browse repository at this point
Copy the full SHA 0b47349View commit details -
Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6687548 - Browse repository at this point
Copy the full SHA 6687548View commit details -
Configuration menu - View commit details
-
Copy full SHA for 340cb26 - Browse repository at this point
Copy the full SHA 340cb26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1edcb79 - Browse repository at this point
Copy the full SHA 1edcb79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c67a25 - Browse repository at this point
Copy the full SHA 9c67a25View commit details
Commits on Aug 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0886d38 - Browse repository at this point
Copy the full SHA 0886d38View commit details -
修复因使用go1.19导致的atomic.Int32类型为定义问题
处理Task.Run返回的error,fmt.Println可能导致并发问题 Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for eb2e93a - Browse repository at this point
Copy the full SHA eb2e93aView commit details -
Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 29fa358 - Browse repository at this point
Copy the full SHA 29fa358View commit details -
Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f2649ff - Browse repository at this point
Copy the full SHA f2649ffView commit details -
Merge branch 'dev' into feature/TaskPool
Signed-off-by: Longyue Li <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1e3eb5a - Browse repository at this point
Copy the full SHA 1e3eb5aView commit details
Commits on Aug 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7979415 - Browse repository at this point
Copy the full SHA 7979415View commit details -
2.处理Start/Shutdown/ShutdownNow()重复调用问题 3.Submit方法中只检验task==nil的情况
Configuration menu - View commit details
-
Copy full SHA for 63b4265 - Browse repository at this point
Copy the full SHA 63b4265View commit details -
1. 因为调整为重复调用后直接报错,重构ShutdownNow()并去掉submittedTasks和Sync.RWMutex
2. 重构Shutdown()使用sync.WaitGroup替代用time.Sleep来检测b.num==0 3. 将StartTasks重命名为schedulingTasks
Configuration menu - View commit details
-
Copy full SHA for 2f39abe - Browse repository at this point
Copy the full SHA 2f39abeView commit details -
Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 91d3741 - Browse repository at this point
Copy the full SHA 91d3741View commit details
Commits on Aug 30, 2022
-
1.task_pool.go 修改task的声明方式,显示指定其容量
2.task_pool_test.go 重新组织测试使其更具可读性,清理魔数显示表明其意图等 Signed-off-by: longyue0521 <longyueli0521@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9a195e8 - Browse repository at this point
Copy the full SHA 9a195e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f1ce93 - Browse repository at this point
Copy the full SHA 8f1ce93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f91e07 - Browse repository at this point
Copy the full SHA 2f91e07View commit details