Fix folly::call_once v2017.05.08.00
authorAndrii Grynenko <andrii@fb.com>
Sat, 6 May 2017 18:01:13 +0000 (11:01 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 6 May 2017 18:12:04 +0000 (11:12 -0700)
commit932973bfb92ecab18920e8c162a9b08f23423697
tree637e9a32b3f5d792eb0d0080903097216de5f73f
parentc822472ddbe39a4516056f5063360846a0eb60e0
Fix folly::call_once

Summary: std::call_once implementation is broken if function throws. This fixes folly::call_once to not depend on std::call_once.

Reviewed By: yfeldblum

Differential Revision: D5015897

fbshipit-source-id: bcbda68becf0930cdbf0b09125cbee61d75c2015
folly/CallOnce.h
folly/SharedMutex.h
folly/detail/Futex.cpp
folly/test/CallOnceTest.cpp