Searched refs:checked_in (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ThreadPool.cpp | 91 std::atomic_int checked_in{0}; in TEST_F() local 95 Pool.async([this, &checked_in, i] { in TEST_F() 97 ++checked_in; in TEST_F() 100 ASSERT_EQ(0, checked_in); in TEST_F() 103 ASSERT_EQ(5, checked_in); in TEST_F() 106 static void TestFunc(std::atomic_int &checked_in, int i) { checked_in += i; } in TestFunc() argument 111 std::atomic_int checked_in{0}; in TEST_F() local 115 Pool.async(TestFunc, std::ref(checked_in), i); in TEST_F() 118 ASSERT_EQ(10, checked_in); in TEST_F() 155 std::atomic_int checked_in{0}; in TEST_F() local [all …]
|
/external/llvm-project/llvm/unittests/Support/ |
D | ThreadPool.cpp | 91 std::atomic_int checked_in{0}; in TEST_F() local 95 Pool.async([this, &checked_in] { in TEST_F() 97 ++checked_in; in TEST_F() 100 ASSERT_EQ(0, checked_in); in TEST_F() 103 ASSERT_EQ(5, checked_in); in TEST_F() 106 static void TestFunc(std::atomic_int &checked_in, int i) { checked_in += i; } in TestFunc() argument 111 std::atomic_int checked_in{0}; in TEST_F() local 115 Pool.async(TestFunc, std::ref(checked_in), i); in TEST_F() 118 ASSERT_EQ(10, checked_in); in TEST_F() 155 std::atomic_int checked_in{0}; in TEST_F() local [all …]
|