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
13
namespace
bond
14
{
15
namespace
detail
16
{
17
18
using
std::once_flag;
19
using
std::call_once;
20
21
}
// namespace detail
22
}
// namespace bond
23
24
#else
25
26
#include <boost/thread/once.hpp>
27
28
namespace
bond
29
{
30
namespace
detail
31
{
32
33
using
boost::once_flag;
34
using
boost::call_once;
35
36
}
// namespace detail
37
}
// namespace bond
38
39
#endif
bond
namespace bond
Definition:
apply.h:17
cpp
inc
bond
core
detail
once.h
Generated by
1.9.5