Skip to content

为什么当running为0的时候,需要唤醒所有的goroutine? #251

Answered by panjf2000
lingfengChen03 asked this question in Q&A
Discussion options

You must be logged in to vote

仔细看 retrieveWorker() 的代码,全部唤醒后可以有不止一个阻塞的调用者可以直接新开 worker 直接执行任务。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by panjf2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants