Fix SimpleBarrier
authorDavid Goldblatt <davidgoldblatt@fb.com>
Fri, 9 Dec 2016 01:20:46 +0000 (17:20 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 9 Dec 2016 18:03:50 +0000 (10:03 -0800)
commit43d3a315bbd54cb187021897b566ffb53290a44b
tree786f7615db9232743f6eb6af9fdbdb95e52a8c6c
parentefc07505fad326d69aa0f96b8d2e74c722dd98a5
Fix SimpleBarrier

Summary:
Do the barrier completion test in a loop. (std::condition_variable has pthreads-style spurious wakeups).

(Sorry for missing this in review).

Reviewed By: djwatson

Differential Revision: D4302035

fbshipit-source-id: 3322d6a0ffba8c47c46bafb1d88034e1a0a9c652
folly/test/SmallLocksBenchmark.cpp