Lines Matching refs:threads

27   Threads threads(&pointers, 1);  in TEST()  local
28 Thread* thread = threads.CreateThread(900); in TEST()
30 ASSERT_EQ(1U, threads.num_threads()); in TEST()
32 Thread* found_thread = threads.FindThread(900); in TEST()
40 threads.Finish(thread); in TEST()
42 ASSERT_EQ(0U, threads.num_threads()); in TEST()
48 Threads threads(&pointers, 1); in TEST() local
49 Thread* thread1 = threads.CreateThread(900); in TEST()
51 ASSERT_EQ(1U, threads.num_threads()); in TEST()
53 Thread* thread2 = threads.CreateThread(901); in TEST()
55 ASSERT_EQ(2U, threads.num_threads()); in TEST()
57 Thread* thread3 = threads.CreateThread(902); in TEST()
59 ASSERT_EQ(3U, threads.num_threads()); in TEST()
61 Thread* found_thread1 = threads.FindThread(900); in TEST()
64 Thread* found_thread2 = threads.FindThread(901); in TEST()
67 Thread* found_thread3 = threads.FindThread(902); in TEST()
76 threads.Finish(thread1); in TEST()
77 ASSERT_EQ(2U, threads.num_threads()); in TEST()
80 threads.Finish(thread3); in TEST()
81 ASSERT_EQ(1U, threads.num_threads()); in TEST()
84 threads.Finish(thread2); in TEST()
85 ASSERT_EQ(0U, threads.num_threads()); in TEST()
91 Threads threads(&pointers, 1); in TEST() local
92 Thread* thread = threads.CreateThread(900); in TEST()
94 ASSERT_EQ(1U, threads.num_threads()); in TEST()
107 threads.WaitForAllToQuiesce(); in TEST()
113 threads.WaitForAllToQuiesce(); in TEST()
119 threads.Finish(thread); in TEST()
120 ASSERT_EQ(0U, threads.num_threads()); in TEST()
126 Threads threads(&pointers, 1); in TestTooManyThreads() local
127 for (size_t i = 0; i <= threads.max_threads(); i++) { in TestTooManyThreads()
128 Thread* thread = threads.CreateThread(900+i); in TestTooManyThreads()
129 ASSERT_EQ(thread, threads.FindThread(900+i)); in TestTooManyThreads()