Home
last modified time | relevance | path

Searched refs:fetch_add (Results 1 – 25 of 6055) sorted by relevance

12345678910>>...243

/dports/devel/emscripten/emscripten-2.0.3/tests/core/
H A Dtest_atomic_cxx.out20 fetch_add 0: old=f new=10
21 fetch_add 1: old=10 new=11
22 fetch_add 2: old=11 new=12
23 fetch_add 3: old=12 new=13
24 fetch_add 4: old=13 new=14
25 fetch_add 5: old=14 new=15
76 fetch_add 0: old=f0f new=f10
77 fetch_add 1: old=f10 new=f11
78 fetch_add 2: old=f11 new=f12
79 fetch_add 3: old=f12 new=f13
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/consts/
H A Dissue-17718.rs33 assert_eq!(C2.fetch_add(1, Ordering::SeqCst), 0); in main()
34 assert_eq!(C2.fetch_add(1, Ordering::SeqCst), 0); in main()
39 assert_eq!(S2.fetch_add(1, Ordering::SeqCst), 0); in main()
40 assert_eq!(S2.fetch_add(1, Ordering::SeqCst), 1); in main()
57 assert_eq!(other::C2.fetch_add(1, Ordering::SeqCst), 0); in main()
58 assert_eq!(other::C2.fetch_add(1, Ordering::SeqCst), 0); in main()
62 assert_eq!(other::S2.fetch_add(1, Ordering::SeqCst), 0); in main()
63 assert_eq!(other::S2.fetch_add(1, Ordering::SeqCst), 1); in main()
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/associated-types/
H A Dassociated-types-project-from-type-param-via-bound-in-where.rs23 COUNTER.fetch_add(1, SeqCst); in foo()
31 COUNTER.fetch_add(10, SeqCst); in foo()
37 COUNTER.fetch_add(100, SeqCst); in c()
44 COUNTER.fetch_add(1000, SeqCst); in default_method()
50 COUNTER.fetch_add(10000, SeqCst); in method()
60 COUNTER.fetch_add(100000, SeqCst); in default_method()
68 COUNTER.fetch_add(1000000, SeqCst); in method()
76 COUNTER.fetch_add(10000000, SeqCst); in method()
/dports/devel/folly/folly-2021.12.27.00/folly/synchronization/
H A DRelaxedAtomic.h115 T fetch_add(T arg) noexcept { in fetch_add() function
116 return atomic::fetch_add(arg, std::memory_order_relaxed); in fetch_add()
118 T fetch_add(T arg) volatile noexcept { in fetch_add() function
119 return atomic::fetch_add(arg, std::memory_order_relaxed); in fetch_add()
150 T operator++() noexcept { return fetch_add(1) + 1; }
153 T operator++(int) noexcept { return fetch_add(1); }
215 T* fetch_add(std::ptrdiff_t arg) noexcept {
218 T* fetch_add(std::ptrdiff_t arg) volatile noexcept {
229 T* operator++() noexcept { return fetch_add(1) + 1; }
232 T* operator++(int) noexcept { return fetch_add(1); }
[all …]
/dports/textproc/sonic/sonic-1.3.0/cargo-crates/librocksdb-sys-6.7.4/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/percona57-client/percona-server-5.7.36-39/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp84 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
147 result.fetch_add(1); in combineNThreads()
155 return local.fetch_add(1); in combineNThreads()
199 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
254 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
326 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
763 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
766 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
769 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
773 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/rocksdb/rocksdb-6.26.1/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp84 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
147 result.fetch_add(1); in combineNThreads()
155 return local.fetch_add(1); in combineNThreads()
199 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
254 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
326 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
763 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
766 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
769 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
773 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/rocksdb-lite/rocksdb-6.26.1/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp84 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
147 result.fetch_add(1); in combineNThreads()
155 return local.fetch_add(1); in combineNThreads()
199 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
254 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
326 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
763 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
766 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
769 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
773 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/percona57-server/percona-server-5.7.36-39/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp84 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
147 result.fetch_add(1); in combineNThreads()
155 return local.fetch_add(1); in combineNThreads()
199 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
254 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
326 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
763 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
766 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
769 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
773 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp84 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
147 result.fetch_add(1); in combineNThreads()
155 return local.fetch_add(1); in combineNThreads()
199 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
254 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
326 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
763 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
766 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
769 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
773 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb104-server/mariadb-10.4.24/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb104-client/mariadb-10.4.24/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb103-client/mariadb-10.3.34/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb103-server/mariadb-10.3.34/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/rocksdb/rocksdb/third-party/folly/folly/synchronization/test/
H A DDistributedMutexTest.cpp83 EXPECT_EQ(barrier.fetch_add(1, std::memory_order_relaxed), 0); in lockWithTryAndTimedNThreads()
146 result.fetch_add(1); in combineNThreads()
154 return local.fetch_add(1); in combineNThreads()
198 auto iteration = total.fetch_add(1); in combineWithLockNThreads()
253 auto iteration = total.fetch_add(1); in combineWithTryLockNThreads()
325 auto iteration = total.fetch_add(1); in combineWithLockTryAndTimedNThreads()
762 moveConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
765 copyConstructs().fetch_add(1, std::memory_order_relaxed); in TestConstruction()
768 copyAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
772 moveAssigns().fetch_add(1, std::memory_order_relaxed); in operator =()
[all …]
/dports/audio/supercollider/SuperCollider-3.11.0-Source/external_libraries/boost_sync/include/boost/sync/detail/events/
H A Dauto_reset_event_semaphore.hpp68 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
74 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
80 m_state.fetch_add(-1, detail::atomic_ns::memory_order_relaxed);
87 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
93 m_state.fetch_add(-1, detail::atomic_ns::memory_order_relaxed);
/dports/audio/sc3-plugins/sc3-plugins-Version-3.9.0/source/NovaDiskIO/sync/include/boost/sync/detail/events/
H A Dauto_reset_event_semaphore.hpp68 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
74 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
80 m_state.fetch_add(-1, detail::atomic_ns::memory_order_relaxed);
87 m_state.fetch_add(1, detail::atomic_ns::memory_order_acquire);
93 m_state.fetch_add(-1, detail::atomic_ns::memory_order_relaxed);
/dports/lang/gcc11/gcc-11.2.0/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc27 p.fetch_add(1); // { dg-error "from here" } in test01()
41 p.fetch_add(1); // { dg-error "from here" } in test02()
55 p.fetch_add(1); // { dg-error "from here" } in test03()
69 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/lang/gcc12-devel/gcc-12-20211205/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc27 p.fetch_add(1); // { dg-error "from here" } in test01()
41 p.fetch_add(1); // { dg-error "from here" } in test02()
55 p.fetch_add(1); // { dg-error "from here" } in test03()
69 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/lang/gcc10/gcc-10.3.0/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc28 p.fetch_add(1); // { dg-error "from here" } in test01()
42 p.fetch_add(1); // { dg-error "from here" } in test02()
56 p.fetch_add(1); // { dg-error "from here" } in test03()
70 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/lang/gcc11-devel/gcc-11-20211009/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc27 p.fetch_add(1); // { dg-error "from here" } in test01()
41 p.fetch_add(1); // { dg-error "from here" } in test02()
55 p.fetch_add(1); // { dg-error "from here" } in test03()
69 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/devel/avr-gcc/gcc-10.2.0/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc28 p.fetch_add(1); // { dg-error "from here" } in test01()
42 p.fetch_add(1); // { dg-error "from here" } in test02()
56 p.fetch_add(1); // { dg-error "from here" } in test03()
70 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/lang/gcc9-devel/gcc-9-20211007/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc28 p.fetch_add(1); // { dg-error "from here" } in test01()
42 p.fetch_add(1); // { dg-error "from here" } in test02()
56 p.fetch_add(1); // { dg-error "from here" } in test03()
70 p.fetch_add(1); // { dg-error "from here" } in test04()
/dports/misc/cxx_atomics_pic/gcc-11.2.0/libstdc++-v3/testsuite/29_atomics/atomic/
H A D69769.cc27 p.fetch_add(1); // { dg-error "from here" } in test01()
41 p.fetch_add(1); // { dg-error "from here" } in test02()
55 p.fetch_add(1); // { dg-error "from here" } in test03()
69 p.fetch_add(1); // { dg-error "from here" } in test04()

12345678910>>...243