Lines Matching refs:semaphore
39 auto semaphore = GetSemaphoreFactory().Create(1);
40 EXPECT_NE(semaphore, nullptr);
41 EXPECT_TRUE(semaphore->TryWait());
42 EXPECT_FALSE(semaphore->TimedWait(1, 0));
52 auto semaphore = GetSemaphoreFactory().Create(1);
53 ASSERT_NE(semaphore, nullptr);
54 EXPECT_TRUE(semaphore->Wait());
55 EXPECT_FALSE(semaphore->TryWait());
65 auto semaphore = GetSemaphoreFactory().Create(0);
66 ASSERT_NE(semaphore, nullptr);
67 EXPECT_TRUE(semaphore->Post());
105 auto semaphore = GetSemaphoreFactory(POSIX_SEMAPHORE_FACTORY).Create(0);
106 EXPECT_NE(semaphore, nullptr);
116 auto semaphore = GetSemaphoreFactory(PTHREAD_SEMAPHORE_FACTORY).Create(0);
117 EXPECT_NE(semaphore, nullptr);