Home | History | Annotate | Download | only in test

Lines Matching refs:counter

28 void WaitAndAdd(Eigen::Notification* n, int* counter) {
30 *counter = *counter + 1;
39 int counter = 0;
41 std::function<void()> func = std::bind(&WaitAndAdd, &n, &counter);
46 VERIFY_IS_EQUAL(counter, 0);
53 // Verify the counter has been incremented
54 VERIFY_IS_EQUAL(counter, 1);
63 int counter = 0;
65 std::function<void()> func = std::bind(&WaitAndAdd, &n, &counter);
71 VERIFY_IS_EQUAL(counter, 0);
74 VERIFY_IS_EQUAL(counter, 4);