Lines Matching refs:thread
131 DelegateSimpleThread thread(&runner, "int_setter"); in TEST() local
132 EXPECT_FALSE(thread.HasBeenStarted()); in TEST()
133 EXPECT_FALSE(thread.HasBeenJoined()); in TEST()
136 thread.Start(); in TEST()
137 EXPECT_TRUE(thread.HasBeenStarted()); in TEST()
138 EXPECT_FALSE(thread.HasBeenJoined()); in TEST()
140 thread.Join(); in TEST()
141 EXPECT_TRUE(thread.HasBeenStarted()); in TEST()
142 EXPECT_TRUE(thread.HasBeenJoined()); in TEST()
152 DelegateSimpleThread thread(&runner, "event_waiter"); in TEST() local
155 thread.Start(); in TEST()
158 thread.Join(); in TEST()
166 DelegateSimpleThread thread(&runner, "non_joinable", options); in TEST() local
168 EXPECT_FALSE(thread.HasBeenStarted()); in TEST()
169 thread.Start(); in TEST()
170 EXPECT_TRUE(thread.HasBeenStarted()); in TEST()
177 EXPECT_FALSE(thread.HasBeenJoined()); in TEST()
178 EXPECT_DCHECK_DEATH({ thread.Join(); }); in TEST()
186 std::unique_ptr<DelegateSimpleThread> thread( in TEST() local
189 thread->Start(); in TEST()
193 thread.reset(); in TEST()