Searched refs:waitTimes (Results 1 – 2 of 2) sorted by relevance
97 static std::vector<size_t> waitTimes(size_t numTimes, size_t maxWait) { in waitTimes() function105 static void testWithTimes(const std::vector<size_t>& waitTimes, bool beforeGet) { in testWithTimes() argument107 for (size_t i = 0; i < waitTimes.size(); i++) { in testWithTimes()110 std::cout << "Thread waiting " << waitTimes.at(i) << " while not holding service." in testWithTimes()112 sleep(waitTimes.at(i)); in testWithTimes()118 std::cout << "Thread waiting " << waitTimes.at(i) << " while holding service." << std::endl; in testWithTimes()119 sleep(waitTimes.at(i)); in testWithTimes()135 threadWaitTimes.at(i) = waitTimes(NUM_TIMES_GET_RELEASE * nServices, MAX_WAITING_DURATION); in testConcurrentThreadsWithDelays()
109 static std::vector<size_t> waitTimes(size_t numTimes, size_t maxWait) { in waitTimes() function117 static void testWithTimes(const std::vector<size_t>& waitTimes, const FqInstance& instance) { in testWithTimes() argument119 << std::accumulate(waitTimes.begin(), waitTimes.end(), 0) << " second(s)." in testWithTimes()122 for (size_t sleepTime : waitTimes) { in testWithTimes()140 threadWaitTimes[i] = waitTimes(NUM_TIMES_GET_UNGET, MAX_WAITING_DURATION); in TEST_F()