| @@ -70,35 +70,35 @@ namespace std | | | @@ -70,35 +70,35 @@ namespace std |
70 | #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) | | 70 | #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) |
71 | lock_guard<mutex> __lock(get_atomic_mutex()); | | 71 | lock_guard<mutex> __lock(get_atomic_mutex()); |
72 | #endif | | 72 | #endif |
73 | _M_i = false; | | 73 | _M_i = false; |
74 | } | | 74 | } |
75 | } | | 75 | } |
76 | | | 76 | |
77 | extern "C" | | 77 | extern "C" |
78 | { | | 78 | { |
79 | bool | | 79 | bool |
80 | atomic_flag_test_and_set_explicit(__atomic_flag_base* __a, | | 80 | atomic_flag_test_and_set_explicit(__atomic_flag_base* __a, |
81 | memory_order __m) throw() | | 81 | memory_order __m) throw() |
82 | { | | 82 | { |
83 | atomic_flag* d = static_cast<volatile atomic_flag*>(__a); | | 83 | atomic_flag* d = static_cast<atomic_flag*>(__a); |
84 | return d->test_and_set(__m); | | 84 | return d->test_and_set(__m); |
85 | } | | 85 | } |
86 | | | 86 | |
87 | void | | 87 | void |
88 | atomic_flag_clear_explicit(__atomic_flag_base* __a, | | 88 | atomic_flag_clear_explicit(__atomic_flag_base* __a, |
89 | memory_order __m) throw() | | 89 | memory_order __m) throw() |
90 | { | | 90 | { |
91 | atomic_flag* d = static_cast<volatile atomic_flag*>(__a); | | 91 | atomic_flag* d = static_cast<atomic_flag*>(__a); |
92 | return d->clear(__m); | | 92 | return d->clear(__m); |
93 | } | | 93 | } |
94 | | | 94 | |
95 | void | | 95 | void |
96 | __atomic_flag_wait_explicit(__atomic_flag_base* __a, | | 96 | __atomic_flag_wait_explicit(__atomic_flag_base* __a, |
97 | memory_order __x) throw() | | 97 | memory_order __x) throw() |
98 | { | | 98 | { |
99 | while (atomic_flag_test_and_set_explicit(__a, __x)) | | 99 | while (atomic_flag_test_and_set_explicit(__a, __x)) |
100 | { }; | | 100 | { }; |
101 | } | | 101 | } |
102 | | | 102 | |
103 | __atomic_flag_base* | | 103 | __atomic_flag_base* |
104 | __atomic_flag_for_address(const void* __z) throw() | | 104 | __atomic_flag_for_address(const void* __z) throw() |