Home
last modified time | relevance | path

Searched refs:Threads (Results 1 – 25 of 74) sorted by relevance

123

/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dwrappers_cpp_test.cpp121 std::thread Threads[32]; in TEST() local
122 for (size_t I = 0U; I < sizeof(Threads) / sizeof(Threads[0]); I++) in TEST()
123 Threads[I] = std::thread(stressNew); in TEST()
129 for (auto &T : Threads) in TEST()
154 std::vector<std::thread *> Threads; in TEST() local
167 Threads.push_back(T); in TEST()
195 for (auto Thread : Threads) in TEST()
197 Threads.clear(); in TEST()
H A Dtsd_test.cpp164 std::thread Threads[32]; in testRegistryThreaded() local
165 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in testRegistryThreaded()
166 Threads[I] = std::thread(stressCache<AllocatorT>, Allocator.get()); in testRegistryThreaded()
172 for (auto &T : Threads) in testRegistryThreaded()
223 std::thread Threads[32]; in TEST() local
224 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST()
225 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()
231 for (auto &T : Threads) in TEST()
241 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST()
242 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()
[all …]
H A Dmutex_test.cpp86 pthread_t Threads[NumberOfThreads]; in TEST() local
88 pthread_create(&Threads[I], 0, lockThread, &Data); in TEST()
90 pthread_join(Threads[I], 0); in TEST()
96 pthread_t Threads[NumberOfThreads]; in TEST() local
98 pthread_create(&Threads[I], 0, tryThread, &Data); in TEST()
100 pthread_join(Threads[I], 0); in TEST()
H A Dsecondary_test.cpp229 std::thread Threads[16]; in TEST_F() local
230 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in TEST_F()
231 Threads[I] = in TEST_F()
238 for (auto &T : Threads) in TEST_F()
H A Dprimary_test.cpp269 std::thread Threads[32]; in SCUDO_TYPED_TEST() local
270 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in SCUDO_TYPED_TEST()
271 Threads[I] = std::thread([&]() { in SCUDO_TYPED_TEST()
301 for (auto &T : Threads) in SCUDO_TYPED_TEST()
H A Dcombined_test.cpp462 std::thread Threads[32]; in SCUDO_TYPED_TEST() local
463 for (scudo::uptr I = 0; I < ARRAY_SIZE(Threads); I++) in SCUDO_TYPED_TEST()
464 Threads[I] = std::thread([&]() { in SCUDO_TYPED_TEST()
489 for (auto &T : Threads) in SCUDO_TYPED_TEST()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DParallel.cpp55 Threads.reserve(ThreadCount); in ThreadPoolExecutor()
56 Threads.resize(1); in ThreadPoolExecutor()
58 Threads[0] = std::thread([this, ThreadCount, S] { in ThreadPoolExecutor()
60 Threads.emplace_back([=] { work(S, I); }); in ThreadPoolExecutor()
83 for (std::thread &T : Threads) in ~ThreadPoolExecutor()
126 std::vector<std::thread> Threads; member in llvm::parallel::detail::__anon2cb6b1800111::ThreadPoolExecutor
H A DThreadPool.cpp40 if (Threads.size() >= MaxThreadCount) in grow()
43 while (static_cast<int>(Threads.size()) < newThreadCount) { in grow()
44 int ThreadID = Threads.size(); in grow()
45 Threads.emplace_back([this, ThreadID] { in grow()
171 for (const llvm::thread &Thread : Threads) in isWorkerThread()
185 for (auto &Worker : Threads) in ~ThreadPool()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dmalloc_stress_transfer_test.cpp26 std::thread *Threads[kNumThreads]; in main() local
27 for (auto &T : Threads) T = new std::thread(&Thread); in main()
28 for (auto T : Threads) { in main()
H A Dsanitizer_stackdepot_test.cpp128 int Threads; member
157 << "_" << info.param.Threads << (info.param.UseCount ? "_UseCount" : "") in PrintStackDepotBenchmarkParams()
192 for (int i = 0; i < Param.Threads; ++i) in TEST_P()
/openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/tests/
H A Dthread_contention.cpp49 std::vector<std::thread> Threads; in runThreadContentionTest() local
55 Threads.emplace_back(asyncTask, GPA, &StartingGun, NumIterations); in runThreadContentionTest()
60 for (auto &T : Threads) in runThreadContentionTest()
H A Dmutex_test.cpp67 std::vector<std::thread> Threads; in runSynchronisedTest() local
76 Threads.emplace_back(synchronousIncrementTask, &StartingGun, &Mu, &Counter, in runSynchronisedTest()
80 for (auto &T : Threads) in runSynchronisedTest()
H A Drecoverable.cpp183 std::vector<std::thread> Threads; in runInterThreadThrashingSingleAlloc() local
192 Threads.emplace_back(singleAllocThrashTask, GPA, &StartingGun, in runInterThreadThrashingSingleAlloc()
198 for (auto &T : Threads) in runInterThreadThrashingSingleAlloc()
/openbsd-src/gnu/llvm/llvm/tools/dsymutil/
H A Ddsymutil.cpp357 Options.LinkOpts.Threads = atoi(NumThreads->getValue()); in getOptions()
359 Options.LinkOpts.Threads = 0; // Use all available hardware threads in getOptions()
362 Options.LinkOpts.Threads = 1; in getOptions()
673 Options.LinkOpts.Statistics ? 1 : Options.LinkOpts.Threads); in main()
674 if (Options.LinkOpts.Threads == 0) { in main()
680 ThreadPool Threads(S); in main() local
768 Threads.async(LinkLambda, OS, Options.LinkOpts); in main()
771 Threads.wait(); in main()
H A DLinkUtils.h61 unsigned Threads = 1; member
/openbsd-src/gnu/llvm/lldb/include/lldb/Target/
H A DThreadCollection.h46 virtual ThreadIterable Threads() { in Threads() function
/openbsd-src/gnu/llvm/lldb/source/Commands/
H A DCommandObjectThreadUtil.cpp60 for (ThreadSP thread_sp : process->Threads()) in DoExecute()
181 for (ThreadSP thread_sp : process.Threads()) in DoExecute()
/openbsd-src/gnu/llvm/clang/lib/DirectoryWatcher/
H A DCMakeLists.txt18 find_package(Threads REQUIRED)
/openbsd-src/gnu/llvm/llvm/cmake/modules/
H A DFindZ3.cmake9 # Threads are required elsewhere in LLVM, but not marked as required here because
11 find_package(Threads)
/openbsd-src/gnu/usr.bin/perl/dist/threads/t/
H A Dbasic.t135 ok(22, $thr1 == $thr3, 'Threads equal');
136 ok(23, !($thr1 != $thr3), 'Threads equal');
/openbsd-src/gnu/llvm/lldb/source/Target/
H A DQueue.cpp44 for (ThreadSP thread_sp : process_sp->Threads()) { in GetThreads()
/openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerFork.cpp378 std::vector<std::thread> Threads; in FuzzWithFork() local
380 Threads.push_back(std::thread(WorkerThread, &FuzzQ, &MergeQ)); in FuzzWithFork()
481 for (auto &T : Threads) in FuzzWithFork()
/openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Linux/
H A DIntelPTMultiCoreTrace.cpp112 for (NativeThreadProtocol &thread : m_process.Threads()) in GetState()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DThreadPool.h190 std::vector<llvm::thread> Threads; variable
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DMinidumpYAML.cpp537 std::vector<ThreadListStream::entry_type> Threads; in create() local
545 Threads.push_back({T, *ExpectedStack, *ExpectedContext}); in create()
547 return std::make_unique<ThreadListStream>(std::move(Threads)); in create()

123