Add call_once, wrapper around std::call_once with a fast path
Summary: std::call_once is a nice API but the current GCC implementation is slower than it needs to be. Adding a header-only wrapper with an additional atomic bool. Reviewed By: luciang Differential Revision: D2938884 fb-gh-sync-id: 5939c94fe62a1523053dcff26c880ecaec9e1150 shipit-source-id: 5939c94fe62a1523053dcff26c880ecaec9e1150
Showing
folly/CallOnce.h
0 → 100644
folly/test/CallOnceTest.cpp
0 → 100644
Please register or sign in to comment