Added fiber-compatible semaphore.
authorLee Howes <lwh@fb.com>
Fri, 26 Aug 2016 22:58:45 +0000 (15:58 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Fri, 26 Aug 2016 23:08:43 +0000 (16:08 -0700)
commitdcf0273a2733df4e61d92b1510a411e3418c8fad
tree5444d9664a3d114eae59d7662c79d66c49a93dd9
parent0decb439ef2b9e70fda71b0ff30f49e805d28e02
Added fiber-compatible semaphore.

Summary: Adds a standard semaphore type with signal and wait methods that is safe to use in both multi-threaded contexts and from fibers.

Reviewed By: andriigrynenko

Differential Revision: D3778943

fbshipit-source-id: 6997f1fb870739e07f982399dbebfd8b3e45daa2
folly/Makefile.am
folly/fibers/Semaphore.cpp [new file with mode: 0644]
folly/fibers/Semaphore.h [new file with mode: 0644]
folly/fibers/test/FibersTest.cpp