Howard Hinnant | 611fdaf | 2010-10-04 18:52:54 +0000 | [diff] [blame] | 1 | //===------------------------- atomic.cpp ---------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "__mutex_base" |
| 11 | #include "atomic" |
| 12 | |
| 13 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 14 | |
| 15 | _LIBCPP_VISIBLE |
| 16 | mutex& |
| 17 | __not_atomic_mut() |
| 18 | { |
| 19 | static mutex m; |
| 20 | return m; |
| 21 | } |
| 22 | |
| 23 | _LIBCPP_END_NAMESPACE_STD |