~smspillaz/folly/folly-git-master

Viewing all changes in revision 6599.

  • Committer: Facebook Github Bot
  • Author(s): Maged Michael
  • Date: 2019-01-19 05:38:32 UTC
  • Revision ID: git-v1:f08d42c017685065065ad6a7151f6bca18488450
Add test that LifoSemMPMCQueue::add does not throw when queue is not full

Summary:
Add test to ThreadPoolTest that LifoSemMPMCQueue::add does not throw when queue is not full.

The test fails before changing LifoSemMPMCQueue::add to use MPMCQueue::writeIfNotFull instead of MPMCQueue::write,and passes after the change.

Reviewed By: djwatson

Differential Revision: D13722155

fbshipit-source-id: 09e296f18eba5c3a78734284b5e409cf006951cc

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: