Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 626) sorted by relevance

12345678910>>...26

/llvm-project/libc/test/integration/src/threads/
H A DCMakeLists.txt1 add_libc_integration_test_suite(libc-threads-integration-tests)
6 libc-threads-integration-tests
10 libc.include.threads
12 libc.src.threads.mtx_destroy
13 libc.src.threads.mtx_init
14 libc.src.threads.mtx_lock
15 libc.src.threads.mtx_unlock
16 libc.src.threads.thrd_create
17 libc.src.threads.thrd_join
23 libc-threads-integration-tests
[all …]
/llvm-project/libc/src/threads/
H A DCMakeLists.txt12 libc.include.threads
13 libc.src.__support.threads.callonce
23 libc.src.__support.threads.thread
24 libc.include.threads
39 libc.include.threads
40 libc.src.__support.threads.thread
50 libc.include.threads
51 libc.src.__support.threads.thread
61 libc.include.threads
62 libc.src.__support.threads
[all...]
/llvm-project/lldb/test/API/tools/lldb-server/vCont-threads/
H A DTestSignal.py23 threads = self.parse_threadinfo_packets(context)
24 self.assertIsNotNone(threads)
25 self.assertEqual(len(threads), num + 1)
28 return threads
32 def send_and_check_signal(self, vCont_data, threads): argument
47 self.assertEqual(sorted(tids), sorted(threads))
68 threads = self.start_threads(1)
70 "C{0:x}".format(lldbutil.get_signal_number("SIGUSR1")), threads
81 threads = self.start_threads(1)
84 "C{0:x}:{1:x};c".format(lldbutil.get_signal_number("SIGUSR1")), threads[:1]
[all …]
/llvm-project/libc/src/threads/linux/
H A DCMakeLists.txt7 libc.include.threads
11 libc.src.__support.threads.mutex
12 libc.src.__support.threads.linux.raw_mutex
13 libc.src.__support.threads.linux.futex_utils
23 libc.include.threads
24 libc.src.__support.threads.CndVar
34 libc.include.threads
35 libc.src.__support.threads.CndVar
45 libc.include.threads
46 libc.src.__support.threads.mutex
[all …]
/llvm-project/lldb/test/API/lang/c/stepping/
H A DTestStepAndBreakpoints.py65 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break_1_in_main)
67 if len(threads) != 1:
70 thread = threads[0]
79 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break_in_a)
80 if len(threads) != 1:
87 thread = threads[0]
92 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break_in_b)
93 if len(threads) != 1:
95 thread = threads[0]
206 threads
[all...]
/llvm-project/compiler-rt/test/tsan/
H A Dcompare_exchange.cpp60 std::thread threads[NUM_THREADS]; in main() local
66 threads[t] = std::thread(f1, t); in main()
67 threads[t + 1] = std::thread(f2<0>, t, OrdList[ords].mo, OrdList[ords].fmo); in main()
68 threads[t].join(); in main()
69 threads[t + 1].join(); in main()
74 threads[t] = std::thread(f1, t); in main()
75 threads[t + 1] = std::thread(f2<1>, t, OrdList[ords].mo, OrdList[ords].fmo); in main()
76 threads[t].join(); in main()
77 threads[t + 1].join(); in main()
82 threads[t] = std::thread(f1, t); in main()
[all …]
/llvm-project/lldb/test/API/lang/objc/objc-stepping/
H A DTestObjCStepping.py91 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break1)
92 if len(threads) != 1:
95 thread = threads[0]
129 threads = lldbutil.continue_to_breakpoint(process, break2)
130 self.assertEqual(len(threads), 1, "Continued to second breakpoint in main.")
134 thread = threads[0]
143 threads = lldbutil.continue_to_breakpoint(
147 len(threads), 1, "Stepped to the call super line in Source returnsStruct."
149 thread = threads[0]
163 threads = lldbutil.continue_to_breakpoint(process, break3)
[all …]
/llvm-project/lldb/test/API/functionalities/inline-stepping/
H A DTestInlineStepping.py77 threads = lldbutil.get_stopped_threads(
80 if len(threads) != 1:
90 self.thread = threads[0]
174 threads = lldbutil.get_threads_stopped_at_breakpoint(
178 if len(threads) != 1:
181 self.thread = threads[0]
217 threads = lldbutil.continue_to_breakpoint(self.process, break_2_in_main)
219 len(threads),
223 self.thread = threads[0]
263 threads
[all...]
/llvm-project/lldb/test/API/macosx/thread_suspend/
H A DTestInternalThreadSuspension.py76 threads = lldbutil.continue_to_breakpoint(process, rt_bp)
77 self.assertEqual(len(threads), 1, "Hit the running_func breakpoint")
85 self.try_an_expression(threads[0], 0, st_bp)
88 threads = lldbutil.continue_to_breakpoint(process, rt_bp)
89 self.assertEqual(len(threads), 1, "We didn't hit running breakpoint")
93 for thread in process.threads:
105 threads = lldbutil.continue_to_breakpoint(process, rt_exit_bp)
106 self.assertEqual(len(threads), 1)
112 threads = lldbutil.continue_to_breakpoint(process, st_bp)
113 self.assertEqual(len(threads), 1, "The thread resumed successfully")
[all …]
/llvm-project/lldb/test/API/functionalities/exec/
H A DTestExec.py82 threads = lldbutil.get_threads_stopped_at_breakpoint(process, breakpoint1)
83 self.assertEqual(len(threads), 1)
89 thread = threads[0]
108 threads = lldbutil.get_stopped_threads(process, lldb.eStopReasonExec)
109 self.assertEqual(len(threads), 1, "We got a thread stopped for exec.")
115 for t in process.threads:
125 threads = lldbutil.get_threads_stopped_at_breakpoint(process, breakpoint2)
126 self.assertEqual(len(threads), 1, "Stopped at breakpoint in exec'ed process.")
159 threads = lldbutil.get_threads_stopped_at_breakpoint(process, breakpoint1)
160 self.assertEqual(len(threads), 1)
[all …]
/llvm-project/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_trace_test.cpp37 for (auto *&thr : threads) { in ThreadArray()
49 if (threads[i]) in ~ThreadArray()
55 auto *thr = threads[i]; in Finish()
56 threads[i] = nullptr; in Finish()
64 ThreadState *threads[N]; member
65 ThreadState *operator[](uptr i) { return threads[i]; } in operator []()
66 ThreadState *operator->() { return threads[0]; } in operator ->()
67 operator ThreadState *() { return threads[0]; } in operator ThreadState*()
278 ThreadArray<2> threads; in TRACE_TEST() local
279 check_thread(threads[0], 0, 0, 0, 0, 0); in TRACE_TEST()
[all …]
/llvm-project/lldb/test/API/functionalities/thread_plan/
H A DTestThreadPlanCommands.py128 threads = lldbutil.get_threads_stopped_at_breakpoint(process, call_me_bkpt)
129 self.assertEqual(len(threads), 1, "Hit my breakpoint while stepping over")
131 current_id = threads[0].GetIndexID()
132 current_tid = threads[0].GetThreadID()
162 threads = lldbutil.get_stopped_threads(process, lldb.eStopReasonPlanComplete)
163 self.assertEqual(len(threads), 1, "One thread completed a step")
183 threads = lldbutil.continue_to_breakpoint(process, second_step_bkpt)
184 self.assertEqual(len(threads), 1, "Hit the second step breakpoint")
186 threads[0].StepOver()
187 threads = lldbutil.get_threads_stopped_at_breakpoint(process, call_me_bkpt)
[all …]
/llvm-project/libc/test/integration/src/__support/threads/
H A DCMakeLists.txt1 if(NOT (TARGET libc.src.__support.threads.thread AND
2 TARGET libc.src.__support.threads.mutex))
6 add_libc_integration_test_suite(libc-support-threads-integration-tests)
11 libc-support-threads-integration-tests
15 libc.src.__support.threads.mutex
16 libc.src.__support.threads.thread
22 libc-support-threads-integration-tests
26 libc.src.__support.threads.thread
/llvm-project/llvm/test/tools/llvm-cov/
H A Dmultithreaded-report.test1 # Test "report" command with and without multiple threads.
3 RUN: llvm-cov report -num-threads=1 \
8 RUN: llvm-cov report -num-threads=10 \
15 # Test "export" command with and without multiple threads.
16 RUN: llvm-cov export -num-threads=1 \
21 RUN: llvm-cov export -num-threads=10 \
28 # Test "show" command with and without multiple threads, single text file.
29 RUN: llvm-cov show -format=text -num-threads=1 \
34 RUN: llvm-cov show -format=text -num-threads=10 \
41 # Test "show" command with and without multiple threads, single HTML file.
[all …]
/llvm-project/libc/src/pthread/
H A DCMakeLists.txt284 libc.src.__support.threads.mutex
295 libc.src.__support.threads.mutex
306 libc.src.__support.threads.mutex
317 libc.src.__support.threads.mutex
328 libc.src.__support.threads.thread
348 libc.src.__support.threads.thread
359 libc.src.__support.threads.thread
370 libc.src.__support.threads.thread
381 libc.src.__support.threads.thread
392 libc.src.__support.threads
[all...]
/llvm-project/compiler-rt/test/hwasan/TestCases/Linux/
H A Dcreate-thread-stress.cpp22 std::vector<std::thread> threads; in Thread() local
23 threads.reserve(kChildThreads); in Thread()
25 threads.emplace_back([]() {}); in Thread()
26 for (auto &t : threads) in Thread()
32 std::vector<std::thread> threads; in run() local
33 threads.reserve(kTopThreads); in run()
35 threads.emplace_back(Thread); in run()
36 for (auto &t : threads) in run()
/llvm-project/libcxxabi/test/
H A Dguard_threaded_test.pass.cpp163 threads.emplace_back(std::forward<Args>(args)...); in Create()
179 for (auto& t : threads) { in JoinAll()
185 std::vector<std::thread> threads; member
193 ThreadGroup threads; in test_free_for_all() local
196 threads.CreateThreadsWithBarrier(num_waiters, in test_free_for_all()
204 threads.JoinAll(); in test_free_for_all()
214 ThreadGroup threads; in test_waiting_for_init() local
217 threads.Create(test_obj.access_callback( in test_waiting_for_init()
231 threads.CreateThreadsWithBarrier(num_waiters, in test_waiting_for_init()
238 threads.JoinAll(); in test_waiting_for_init()
[all …]
/llvm-project/openmp/runtime/test/parallel/
H A Domp_parallel_num_threads.c8 int threads; in test_omp_parallel_num_threads() local
22 for(threads = 1; threads <= max_threads; threads++) { in test_omp_parallel_num_threads()
24 #pragma omp parallel reduction(+:num_failed) num_threads(threads) in test_omp_parallel_num_threads()
26 num_failed = num_failed + !(threads == omp_get_num_threads()); in test_omp_parallel_num_threads()
30 num_failed = num_failed + !(nthreads == threads); in test_omp_parallel_num_threads()
/llvm-project/lldb/test/API/lang/objc/objc-dynamic-value/
H A DTestObjCDynamicValue.py71 threads = lldbutil.get_threads_stopped_at_breakpoint(
74 self.assertEqual(len(threads), 1)
75 thread = threads[0]
135 threads = lldbutil.get_stopped_threads(process, lldb.eStopReasonPlanComplete)
136 self.assertEqual(len(threads), 1)
137 line_entry = threads[0].GetFrameAtIndex(0).GetLineEntry()
145 threads = lldbutil.continue_to_breakpoint(process, handle_SourceBase_bkpt)
146 self.assertEqual(len(threads), 1)
147 thread = threads[0]
186 threads = lldbutil.continue_to_breakpoint(process, handle_SourceBase_bkpt)
[all …]
/llvm-project/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_mutex_test.cpp131 pthread_t threads[kThreads]; in TEST() local
133 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST()
135 PTHREAD_JOIN(threads[i], 0); in TEST()
142 pthread_t threads[kThreads]; in TEST() local
144 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST()
146 PTHREAD_JOIN(threads[i], 0); in TEST()
152 pthread_t threads[kThreads]; in TEST() local
154 PTHREAD_CREATE(&threads[i], 0, read_write_thread<Mutex>, &data); in TEST()
155 for (int i = 0; i < kThreads; i++) PTHREAD_JOIN(threads[i], 0); in TEST()
161 pthread_t threads[kThreads]; in TEST() local
[all …]
/llvm-project/lldb/test/API/functionalities/asan/
H A DTestMemoryHistory.py73 threads = process.GetHistoryThreads(addr)
74 self.assertEqual(threads.GetSize(), 2)
76 history_thread = threads.GetThreadAtIndex(0)
83 history_thread = threads.GetThreadAtIndex(1)
92 threads = None
156 threads = process.GetHistoryThreads(addr)
157 self.assertEqual(threads.GetSize(), 2)
159 history_thread = threads.GetThreadAtIndex(0)
169 history_thread = threads.GetThreadAtIndex(1)
181 threads = None
/llvm-project/lldb/test/API/macosx/indirect_symbol/
H A DTestIndirectSymbols.py50 threads = lldbutil.get_threads_stopped_at_breakpoint(process, break1)
51 if len(threads) != 1:
54 thread = threads[0]
74 threads = lldbutil.continue_to_breakpoint(process, break_indirect)
75 self.assertEqual(len(threads), 1, "Stopped at breakpoint in indirect function.")
88 threads = lldbutil.continue_to_breakpoint(process, break2)
108 threads = lldbutil.continue_to_breakpoint(process, break_reexported)
110 len(threads), 1, "Stopped at breakpoint in reexported function target."
/llvm-project/lldb/test/API/lang/cpp/dynamic-value/
H A DTestDynamicValue.py64 threads = lldbutil.get_threads_stopped_at_breakpoint(process, first_call_bpt)
65 self.assertEqual(len(threads), 1)
66 thread = threads[0]
86 threads = lldbutil.continue_to_breakpoint(process, do_something_bpt)
87 self.assertEqual(len(threads), 1)
88 thread = threads[0]
164 threads = lldbutil.continue_to_breakpoint(process, second_call_bpt)
165 self.assertEqual(len(threads), 1)
166 thread = threads[0]
176 threads
[all...]
/llvm-project/openmp/runtime/test/worksharing/for/
H A Domp_for_schedule_guided.c38 int threads; in test_omp_for_schedule_guided() local
52 threads = omp_get_num_threads(); in test_omp_for_schedule_guided()
57 if (threads < 2) { in test_omp_for_schedule_guided()
59 threads = 2; in test_omp_for_schedule_guided()
115 int* local_chunknr = (int*)malloc(threads * sizeof(int)); in test_omp_for_schedule_guided()
118 for (i = 0; i < threads; i++) in test_omp_for_schedule_guided()
171 expected_chunk_size = openwork / threads; in test_omp_for_schedule_guided()
177 expected_chunk_size = c * openwork / threads; in test_omp_for_schedule_guided()
/llvm-project/lld/test/ELF/
H A Dthreads.s5 # RUN: ld.lld --threads=1 %t.o -o /dev/null
6 # RUN: ld.lld --threads=2 %t.o -o /dev/null
8 # RUN: not ld.lld --threads=all %t.o -o /dev/null 2>&1 | FileCheck %s -DN=all
9 # RUN: not ld.lld --threads=0 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=0
10 # RUN: not ld.lld --threads=-1 %t.o -o /dev/null 2>&1 | FileCheck %s -DN=-1
12 # CHECK: error: --threads: expected a positive integer, but got '[[N]]'

12345678910>>...26