Home
last modified time | relevance | path

Searched refs:memory_order_release (Results 1 – 25 of 88) sorted by relevance

1234

/external/clang/test/Sema/
Datomic-ops.c132 __atomic_store_n(I, 4, memory_order_release); in f()
133 __atomic_store_n(I, 4.0, memory_order_release); in f()
134 …__atomic_store_n(CI, 4, memory_order_release); // expected-error {{address argument to atomic oper… in f()
135 __atomic_store_n(I, P, memory_order_release); // expected-warning {{parameter of type 'int'}} in f()
136 …__atomic_store_n(i, 1, memory_order_release); // expected-error {{must be a pointer to integer or … in f()
137 …__atomic_store_n(s1, *s2, memory_order_release); // expected-error {{must be a pointer to integer … in f()
138 …__atomic_store_n(I, I, memory_order_release); // expected-warning {{incompatible pointer to intege… in f()
140 __atomic_store(I, *P, memory_order_release); in f()
141 …__atomic_store(CI, I, memory_order_release); // expected-error {{address argument to atomic operat… in f()
142 __atomic_store(s1, s2, memory_order_release); in f()
[all …]
/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp30 …x.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operation… in main()
32 …vx.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operatio… in main()
41 …std::atomic_load_explicit(&x, std::memory_order_release); // expected-warning {{memory order argum… in main()
43 …std::atomic_load_explicit(&vx, std::memory_order_release); // expected-warning {{memory order argu… in main()
61 x.store(42, std::memory_order_release); in main()
73 std::atomic_store_explicit(&x, 42, std::memory_order_release); in main()
78 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in main()
80 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in main()
89 x.compare_exchange_weak(val1, val2, std::memory_order_release); in main()
92 …ge_weak_explicit(&x, &val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expect… in main()
[all …]
/external/libcxx/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp33 i.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
35 i.compare_exchange_strong(exp, 0, std::memory_order_release); in main()
38 v.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
40 v.compare_exchange_strong(exp, 0, std::memory_order_release); in main()
/external/libcxx/test/std/atomics/atomics.flag/
Datomic_flag_clear_explicit.pass.cpp33 atomic_flag_clear_explicit(&f, std::memory_order_release); in main()
35 atomic_flag_clear_explicit(&f, std::memory_order_release); in main()
54 atomic_flag_clear_explicit(&f, std::memory_order_release); in main()
56 atomic_flag_clear_explicit(&f, std::memory_order_release); in main()
Dclear.pass.cpp40 f.clear(std::memory_order_release); in main()
42 f.clear(std::memory_order_release); in main()
68 f.clear(std::memory_order_release); in main()
70 f.clear(std::memory_order_release); in main()
Dtest_and_set.pass.cpp51 assert(f.test_and_set(std::memory_order_release) == 0); in main()
52 assert(f.test_and_set(std::memory_order_release) == 1); in main()
93 assert(f.test_and_set(std::memory_order_release) == 0); in main()
94 assert(f.test_and_set(std::memory_order_release) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp45 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_release) == 0); in main()
81 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_release) == 0); in main()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cc58 CheckStoreLoad<atomic_uint8_t, memory_order_relaxed, memory_order_release>(); in TEST()
64 CheckStoreLoad<atomic_uint16_t, memory_order_relaxed, memory_order_release>(); in TEST()
70 CheckStoreLoad<atomic_uint32_t, memory_order_relaxed, memory_order_release>(); in TEST()
76 CheckStoreLoad<atomic_uint64_t, memory_order_relaxed, memory_order_release>(); in TEST()
85 CheckStoreLoad<atomic_uintptr_t, memory_order_relaxed, memory_order_release> in TEST()
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DRunQueue.h63 e->state.store(kReady, std::memory_order_release); in PushFront()
77 e->state.store(kEmpty, std::memory_order_release); in PopFront()
96 e->state.store(kReady, std::memory_order_release); in PushBack()
113 e->state.store(kEmpty, std::memory_order_release); in PopBack()
145 e->state.store(kEmpty, std::memory_order_release); in PopBackHalf()
/external/protobuf/src/google/protobuf/stubs/
Datomicops_internals_pnacl.h111 std::memory_order_release, in Release_CompareAndSwap()
126 ((AtomicLocation32)ptr)->store(value, std::memory_order_release); in Release_Store()
194 std::memory_order_release, in Release_CompareAndSwap()
209 ((AtomicLocation64)ptr)->store(value, std::memory_order_release); in Release_Store()
/external/libchrome/base/
Datomicops_internals_portable.h111 std::memory_order_release, in Release_CompareAndSwap()
126 ((AtomicLocation32)ptr)->store(value, std::memory_order_release); in Release_Store()
194 std::memory_order_release, in Release_CompareAndSwap()
209 ((AtomicLocation64)ptr)->store(value, std::memory_order_release); in Release_Store()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc174 last_record_.store(kReferenceQueue, std::memory_order_release); in Reset()
264 record_count_.fetch_add(1, std::memory_order_release); in GetNext()
380 std::memory_order_release); in PersistentMemoryAllocator()
385 shared_meta()->queue.next.store(kReferenceQueue, std::memory_order_release); in PersistentMemoryAllocator()
386 shared_meta()->tailptr.store(kReferenceQueue, std::memory_order_release); in PersistentMemoryAllocator()
398 std::memory_order_release); in PersistentMemoryAllocator()
576 data->store(0, std::memory_order_release); in ChangeType()
587 from_type_id, to_type_id, std::memory_order_release, in ChangeType()
749 block->next.store(kReferenceQueue, std::memory_order_release); // New tail. in MakeIterable()
781 std::memory_order_release, in MakeIterable()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h40 atomic_store(&state_, 0, memory_order_release); in Unlock()
112 u32 prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
125 u32 prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release); in ReadUnlock()
Dsanitizer_persistent_allocator.h60 atomic_store(&region_end, mem + allocsz, memory_order_release); in alloc()
61 atomic_store(&region_pos, mem, memory_order_release); in alloc()
Dsanitizer_atomic_clang_other.h64 DCHECK(mo & (memory_order_relaxed | memory_order_release in atomic_store()
72 } else if (mo == memory_order_release) { in atomic_store()
Dsanitizer_atomic_clang_x86.h76 DCHECK(mo & (memory_order_relaxed | memory_order_release in atomic_store()
84 } else if (mo == memory_order_release) { in atomic_store()
Dsanitizer_addrhashmap.h295 atomic_store(&c->addr, h->addr_, memory_order_release); in release()
300 atomic_store(&c->addr, 0, memory_order_release); in release()
310 atomic_store(&c->addr, addr1, memory_order_release); in release()
311 atomic_store(&c1->addr, 0, memory_order_release); in release()
Dsanitizer_quarantine.h52 atomic_store(&max_size_, size, memory_order_release); in Init()
54 memory_order_release); // 90% of max size. in Init()
/external/skia/src/core/
DSkTaskGroup.cpp17 fPending.fetch_add(-1, std::memory_order_release); in add()
27 fPending.fetch_add(-1, std::memory_order_release); in batch()
/external/skqp/src/core/
DSkTaskGroup.cpp17 fPending.fetch_add(-1, std::memory_order_release); in add()
27 fPending.fetch_add(-1, std::memory_order_release); in batch()
/external/clang/test/CodeGen/
Dbig-atomic-ops.c14 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator
123 __c11_atomic_store(d, 1, memory_order_release); in ff2()
186 __atomic_clear(&flag2, memory_order_release); in test_and_set()
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp75 obj.store(true, std::memory_order_release); in main()
130 obj.store(true, std::memory_order_release); in main()
185 obj.store(true, std::memory_order_release); in main()
/external/compiler-rt/lib/asan/
Dasan_thread.cc132 atomic_store(&stack_switching_, 1, memory_order_release); in StartSwitchFiber()
157 atomic_store(&stack_switching_, 0, memory_order_release); in FinishSwitchFiber()
219 atomic_store(&stack_switching_, false, memory_order_release); in Init()
238 atomic_store(signal_thread_is_registered, 1, memory_order_release); in ThreadStart()
Dasan_stack.cc23 atomic_store(&malloc_context_size, size, memory_order_release); in SetMallocContextSize()
/external/libcxx/test/std/atomics/atomics.order/
Dmemory_order.pass.cpp28 assert(std::memory_order_release == 3); in main()

1234