Bond
 
Loading...
Searching...
No Matches
once.h
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4#pragma once
5
6#include <bond/core/config.h>
7
8#if !defined(BOND_NO_CX11_HDR_MUTEX)
9
10// Use std::call_once when building with a sane compiler.
11#include <mutex>
12
13namespace bond
14{
15namespace detail
16{
17
18using std::once_flag;
19using std::call_once;
20
21} // namespace detail
22} // namespace bond
23
24#else
25
26#include <boost/thread/once.hpp>
27
28namespace bond
29{
30namespace detail
31{
32
33using boost::once_flag;
34using boost::call_once;
35
36} // namespace detail
37} // namespace bond
38
39#endif
namespace bond
Definition: apply.h:17