Lines Matching refs:threads
37 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()
280 TraceSwitchPartImpl(threads[0]); in TRACE_TEST()
281 check_thread(threads[0], 1, 1, 0, 0, 0); in TRACE_TEST()
282 TraceSwitchPartImpl(threads[0]); in TRACE_TEST()
283 check_thread(threads[0], 2, 2, 0, 0, 0); in TRACE_TEST()
284 TraceSwitchPartImpl(threads[0]); in TRACE_TEST()
285 check_thread(threads[0], 3, 3, 0, 0, 1); in TRACE_TEST()
286 TraceSwitchPartImpl(threads[0]); in TRACE_TEST()
287 check_thread(threads[0], 3, 3, 0, 0, 1); in TRACE_TEST()
288 threads.Finish(0); in TRACE_TEST()
290 threads.Finish(1); in TRACE_TEST()
298 ThreadArray<kThreads> threads; in TRACE_TEST() local
301 TraceSwitchPartImpl(threads[i]); in TRACE_TEST()
308 threads.Finish(i); in TRACE_TEST()
325 ThreadArray<kThreads> threads; in TRACE_TEST() local
328 for (uptr j = 0; j < kParts; j++) TraceSwitchPartImpl(threads[i]); in TRACE_TEST()
333 threads.Finish(i); in TRACE_TEST()