Lines Matching refs:thread1
41 PlatformThread thread1; in TEST() local
42 PlatformThread thread2 = std::move(thread1); in TEST()
43 EXPECT_TRUE(thread1.empty()); in TEST()
48 PlatformThread thread1 = PlatformThread::SpawnJoinable([] {}, "1"); in TEST() local
49 PlatformThread thread2 = std::move(thread1); in TEST()
50 EXPECT_TRUE(thread1.empty()); in TEST()
53 thread1 = PlatformThread::SpawnDetached([&] { done.Set(); }, "2"); in TEST()
54 thread2 = std::move(thread1); in TEST()
55 EXPECT_TRUE(thread1.empty()); in TEST()
62 PlatformThread thread1 = PlatformThread(); in TEST() local
64 EXPECT_EQ(thread1.GetHandle(), thread2.GetHandle()); in TEST()
65 thread1 = PlatformThread::SpawnJoinable([] {}, "1"); in TEST()
67 EXPECT_NE(thread1.GetHandle(), thread2.GetHandle()); in TEST()
68 thread1.Finalize(); in TEST()
69 EXPECT_NE(thread1.GetHandle(), thread2.GetHandle()); in TEST()
71 EXPECT_EQ(thread1.GetHandle(), thread2.GetHandle()); in TEST()