Searched refs:test_and_set (Results 1 – 17 of 17) sorted by relevance
27 assert(f.test_and_set() == 0); in main()28 assert(f.test_and_set() == 1); in main()33 assert(f.test_and_set(std::memory_order_relaxed) == 0); in main()34 assert(f.test_and_set(std::memory_order_relaxed) == 1); in main()39 assert(f.test_and_set(std::memory_order_consume) == 0); in main()40 assert(f.test_and_set(std::memory_order_consume) == 1); in main()45 assert(f.test_and_set(std::memory_order_acquire) == 0); in main()46 assert(f.test_and_set(std::memory_order_acquire) == 1); in main()51 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()[all …]
27 assert(f.test_and_set() == 0); in main()29 assert(f.test_and_set() == 0); in main()34 assert(f.test_and_set() == 0); in main()36 assert(f.test_and_set() == 0); in main()41 assert(f.test_and_set() == 0); in main()43 assert(f.test_and_set() == 0); in main()48 assert(f.test_and_set() == 0); in main()50 assert(f.test_and_set() == 0); in main()55 assert(f.test_and_set() == 0); in main()57 assert(f.test_and_set() == 0); in main()[all …]
28 assert(f.test_and_set() == 1); in main()34 assert(f.test_and_set() == 1); in main()40 assert(f.test_and_set() == 1); in main()46 assert(f.test_and_set() == 1); in main()52 assert(f.test_and_set() == 1); in main()58 assert(f.test_and_set() == 1); in main()64 assert(f.test_and_set() == 1); in main()70 assert(f.test_and_set() == 1); in main()76 assert(f.test_and_set() == 1); in main()82 assert(f.test_and_set() == 1); in main()[all …]
27 f.test_and_set(); in main()29 assert(f.test_and_set() == 0); in main()34 f.test_and_set(); in main()36 assert(f.test_and_set() == 0); in main()
28 assert(f.test_and_set() == 1); in main()34 assert(f.test_and_set() == 1); in main()
28 assert(f.test_and_set() == 0); in main()33 assert(!zero.test_and_set()); in main()
25 assert(f.test_and_set() == 0); in main()
26 struct X { X() { global.test_and_set(); }}; in X()34 assert(global.test_and_set() == 1); in main()38 assert(f.test_and_set() == 0); in main()42 assert(f.test_and_set() == 1); in main()
29 EXPECT_TRUE(Vec.test_and_set(17)); in TEST()30 EXPECT_FALSE(Vec.test_and_set(17)); in TEST()
46 while (spinlock_.test_and_set(std::memory_order::memory_order_acquire)) { in MetadataLock()
180 void test_and_set() { in test_and_set() function
309 void test_and_set() { in test_and_set() function
103 bool test_and_set(unsigned Idx) { in test_and_set() function527 bool test_and_set(unsigned Idx) { in test_and_set() function
55 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept;56 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept;1725 bool test_and_set(memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT1728 bool test_and_set(memory_order __m = memory_order_seq_cst) _NOEXCEPT1763 return __o->test_and_set();1770 return __o->test_and_set();1777 return __o->test_and_set(__m);1784 return __o->test_and_set(__m);
106 bool test_and_set (unsigned Idx) {540 bool test_and_set (unsigned Idx) {