Searched refs:test_and_set (Results 1 – 13 of 13) 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 …]
26 f.test_and_set(); in main()28 assert(f.test_and_set() == 0); in main()32 f.test_and_set(); in main()34 assert(f.test_and_set() == 0); in main()38 f.test_and_set(); in main()40 assert(f.test_and_set() == 0); in main()44 f.test_and_set(); in main()46 assert(f.test_and_set() == 0); in main()50 f.test_and_set(); in main()52 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 …]
26 f.test_and_set(); in main()28 assert(f.test_and_set() == 0); in main()32 f.test_and_set(); in main()34 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()
26 assert(f.test_and_set() == 0); in main()31 assert(!zero.test_and_set()); in main()
24 assert(f.test_and_set() == 0); in main()
29 EXPECT_TRUE(Vec.test_and_set(17)); in TEST()30 EXPECT_FALSE(Vec.test_and_set(17)); in TEST()
180 void test_and_set() { in test_and_set() function
301 void test_and_set() { in test_and_set() function
51 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept;52 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept;1630 bool test_and_set(memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT1633 bool test_and_set(memory_order __m = memory_order_seq_cst) _NOEXCEPT1668 return __o->test_and_set();1675 return __o->test_and_set();1682 return __o->test_and_set(__m);1689 return __o->test_and_set(__m);
106 bool test_and_set (unsigned Idx) {540 bool test_and_set (unsigned Idx) {