Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using std::memory_order_relaxed;
using std::memory_order_release;
using std::memory_order_seq_cst;

using once_flag = struct { pthread_once_t flag{PTHREAD_ONCE_INIT}; };
using once_flag = struct { pthread_once_t flag = PTHREAD_ONCE_INIT; };

template <class T>
inline void call_once(once_flag& once, T func) {
Expand Down