Lines Matching refs:threads
51 // If last threads were removed, m_numEntered > 0 && m_numRemoved > 0
83 // m_numEntered must not be touched until all threads have had
98 // threads. Since m_numThreads only changes if all threads are inside the spinbarrier,
100 // all threads.
103 // Release all waiting threads. Since this thread has not been removed, m_numLeaving will
132 // Wait for other threads exiting previous barrier
150 // Release all waiting threads.
238 std::vector<TestThread*> threads (numThreads, static_cast<TestThread*>(DE_NULL));
242 threads[ndx] = new TestThread(barrier, &sharedVar, numThreads, ndx);
243 DE_TEST_ASSERT(threads[ndx]);
244 threads[ndx]->start();
249 threads[ndx]->join();
250 delete threads[ndx];
312 std::vector<TestExitThread*> threads (numThreads, static_cast<TestExitThread*>(DE_NULL));
316 threads[ndx] = new TestExitThread(barrier, numThreads, ndx, waitMode);
317 DE_TEST_ASSERT(threads[ndx]);
318 threads[ndx]->start();
323 threads[ndx]->join();
324 delete threads[ndx];