Lines Matching defs:threads
886 void createThreads (vector<TestThread*>& threads, int threadCount, int perThreadContextCount, vector<TestContext*>& contexts, const Library& egl)
889 DE_ASSERT(threads.empty());
898 threads.push_back(new TestThread(threadContexts, egl));
904 void destroyThreads (vector<TestThread*>& threads)
906 for (int threadNdx = 0; threadNdx < (int)threads.size(); threadNdx++)
908 delete threads[threadNdx];
909 threads[threadNdx] = DE_NULL;
912 threads.clear();
915 void startThreads (vector<TestThread*>& threads)
917 for (int threadNdx = 0; threadNdx < (int)threads.size(); threadNdx++)
918 threads[threadNdx]->start();
921 void joinThreads (vector<TestThread*>& threads)
923 for (int threadNdx = 0; threadNdx < (int)threads.size(); threadNdx++)
924 threads[threadNdx]->join();
927 bool threadResultsOk (const vector<TestThread*>& threads)
929 for (int threadNdx = 0; threadNdx < (int)threads.size(); threadNdx++)
931 if (!threads[threadNdx]->resultOk())
989 log << TestLog::Message << "Number of threads: " << config.threadCount << TestLog::EndMessage;
1038 vector<TestThread*> threads;
1043 createThreads(threads, m_config.threadCount, m_config.perThreadContextCount, m_contexts, m_eglTestCtx.getLibrary());
1047 startThreads(threads);
1048 joinThreads(threads);
1052 if (!threadResultsOk(threads))
1058 destroyThreads(threads);
1071 string createTestName(int threads, int perThreadContextCount)
1075 stream << threads << (threads == 1 ? "_thread_" : "_threads_") << perThreadContextCount << (perThreadContextCount == 1 ? "_context" : "_contexts");