summaryrefslogtreecommitdiffstats
path: root/libcxx/src/atomic.cpp
blob: dc354df2303f9b85530d44d04ab778fd4a524523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===------------------------- atomic.cpp ---------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "__mutex_base"
#include "atomic"

_LIBCPP_BEGIN_NAMESPACE_STD

_LIBCPP_VISIBLE
mutex&
__not_atomic_mut()
{
    static mutex m;
    return m;
}

_LIBCPP_END_NAMESPACE_STD
OpenPOWER on IntegriCloud