关于panjf2000 / ants v2.0.0版本修复的问题 #162
Unanswered
guoxinyu-shopee
asked this question in
Q&A
Replies: 3 comments 2 replies
-
定时任务把所有 workers 都清理了,但是还有一些调用方在等待唤醒信号,这样会永远阻塞。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
这个场景我理解到了,但是目前还不清楚,是如何解决的?
我看在1.2.0版本在定时清理任务中,已经有如下代码了
if p.Running() == 0 {
p.cond.Broadcast()
}
Andy Pan ***@***.***> 于2021年5月31日周一 下午2:53写道:
… 定时任务把所有 workers 都清理了,但是还有一些调用方在等待唤醒信号,这样会永远阻塞。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMVTMHAVAVJWVKU47XMXDFTTQMXAJANCNFSM452IJNRA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
看提交的时间应该是重复了,在 v1.2.0 的时候就修复了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
你好,我在v2.0.0看到如下描述
但是对比v1.2.0和v2.0.0的代码,我没看懂是如何解决这个问题的,或者这个问题是什么情况下会出现?
可否给我讲解一下?
Beta Was this translation helpful? Give feedback.
All reactions