Commit 2a7f29f5 authored by Arkady Shapkin's avatar Arkady Shapkin Committed by Facebook Github Bot

Fix using Atom with MSVC

Summary: Closes https://github.com/facebook/folly/pull/770

Reviewed By: nbronson

Differential Revision: D6991705

Pulled By: yfeldblum

fbshipit-source-id: 9f6ae0e09b436993ee998fe6c5d347121c229489
parent a47a5531
......@@ -44,7 +44,9 @@ enum class FutexResult {
*/
template <template <typename> class Atom = std::atomic>
struct Futex : Atom<uint32_t> {
using Atom<uint32_t>::Atom;
Futex() : Atom<uint32_t>() {}
explicit constexpr Futex(uint32_t init) : Atom<uint32_t>(init) {}
/** Puts the thread to sleep if this->load() == expected. Returns true when
* it is returning because it has consumed a wake() event, false for any
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment