Skip to content

Remove a major source of contention in thread_pool#325

Merged
vjpai merged 2 commits intogrpc:masterfrom
ctiller:threads
Feb 2, 2015
Merged

Remove a major source of contention in thread_pool#325
vjpai merged 2 commits intogrpc:masterfrom
ctiller:threads

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Feb 2, 2015

  • notify_one when new work is available to avoid thundering herd
    problems
  • checking conditions before entering cv_.wait() prevents a case that
    these are not validated

- notify_one when new work is available to avoid thundering herd
  problems
- checking conditions before entering cv_.wait() prevents a case that
  these are not validated
And make it easy not to make the same mistake
vjpai added a commit that referenced this pull request Feb 2, 2015
Remove a major source of contention in thread_pool
@vjpai vjpai merged commit 6e64354 into grpc:master Feb 2, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants