waitFor race workaround
authorHans Fugal <fugalh@fb.com>
Tue, 21 Oct 2014 18:55:52 +0000 (11:55 -0700)
committerdcsommer <dcsommer@fb.com>
Wed, 29 Oct 2014 23:03:21 +0000 (16:03 -0700)
commit5aa44fb2070479b5bfd88d1e3534439f4d54e238
treec9a123496db23d9fa566955bf9a37f2c25373197
parent4459989b0fe012a32faa073d8526b818f4063a85
waitFor race workaround

Summary: Fixing the race will take some more thought. Probably a condvar. For now, I'm turning waitFor into a spinlock instead.

Test Plan: new unit test that deadlocks before the workaround

Reviewed By: jsedgwick@fb.com

Subscribers: trunkagent, net-systems@, fugalh, exa, njormrod, folly-diffs@

FB internal diff: D1628015

Tasks: 5427828
folly/wangle/ManualExecutor.h
folly/wangle/test/ExecutorTest.cpp