Lines Matching refs:barrier
2704 pthread_barrier_t barrier; member
2723 int result = pthread_barrier_wait(&arg->data->barrier); in BarrierTestHelper()
2744 ASSERT_EQ(0, pthread_barrier_init(&data.barrier, nullptr, data.thread_count)); in TEST()
2757 ASSERT_EQ(0, pthread_barrier_destroy(&data.barrier)); in TEST()
2762 pthread_barrier_t* barrier; member
2767 ASSERT_EQ(0, pthread_barrier_wait(arg->barrier)); in BarrierDestroyTestHelper()
2771 pthread_barrier_t barrier; in TEST() local
2772 ASSERT_EQ(0, pthread_barrier_init(&barrier, nullptr, 2)); in TEST()
2776 arg.barrier = &barrier; in TEST()
2780 ASSERT_EQ(EBUSY, pthread_barrier_destroy(&barrier)); in TEST()
2781 ASSERT_EQ(PTHREAD_BARRIER_SERIAL_THREAD, pthread_barrier_wait(&barrier)); in TEST()
2783 ASSERT_EQ(0, pthread_barrier_destroy(&barrier)); in TEST()
2786 ASSERT_EQ(EINVAL, pthread_barrier_destroy(&barrier)); in TEST()
2791 pthread_barrier_t* barrier; member
2801 int result = pthread_barrier_wait(arg->barrier); in BarrierOrderingTestHelper()
2806 result = pthread_barrier_wait(arg->barrier); in BarrierOrderingTestHelper()
2813 pthread_barrier_t barrier; in TEST() local
2814 ASSERT_EQ(0, pthread_barrier_init(&barrier, nullptr, THREAD_COUNT)); in TEST()
2819 args[i].barrier = &barrier; in TEST()
2833 pthread_barrier_t barrier; in TEST() local
2834 ASSERT_EQ(EINVAL, pthread_barrier_init(&barrier, nullptr, 0)); in TEST()