• Home
  • Raw
  • Download

Lines Matching refs:attr

170   pthread_attr_t attr;  in TEST()  local
171 ASSERT_EQ(0, pthread_attr_init(&attr)); in TEST()
172 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack, stack_size)); in TEST()
175 ASSERT_EQ(0, pthread_create(&t, &attr, DirtyKeyFn, &key)); in TEST()
236 pthread_attr_t attr; in AssertDetached() local
237 ASSERT_EQ(0, pthread_getattr_np(t, &attr)); in AssertDetached()
239 ASSERT_EQ(0, pthread_attr_getdetachstate(&attr, &detach_state)); in AssertDetached()
240 pthread_attr_destroy(&attr); in AssertDetached()
644 pthread_rwlockattr_t attr; in TEST() local
645 ASSERT_EQ(0, pthread_rwlockattr_init(&attr)); in TEST()
649 ASSERT_EQ(0, pthread_rwlockattr_setpshared(&attr, pshared_value_array[i])); in TEST()
651 ASSERT_EQ(0, pthread_rwlockattr_getpshared(&attr, &pshared)); in TEST()
658 ASSERT_EQ(0, pthread_rwlockattr_setkind_np(&attr, kind_array[i])); in TEST()
660 ASSERT_EQ(0, pthread_rwlockattr_getkind_np(&attr, &kind)); in TEST()
664 ASSERT_EQ(0, pthread_rwlockattr_destroy(&attr)); in TEST()
857 pthread_rwlockattr_t attr; in InitRwlock() local
858 ASSERT_EQ(0, pthread_rwlockattr_init(&attr)); in InitRwlock()
859 ASSERT_EQ(0, pthread_rwlockattr_setkind_np(&attr, kind_type)); in InitRwlock()
860 ASSERT_EQ(0, pthread_rwlock_init(&lock, &attr)); in InitRwlock()
861 ASSERT_EQ(0, pthread_rwlockattr_destroy(&attr)); in InitRwlock()
987 pthread_attr_t attr; in TEST() local
988 ASSERT_EQ(0, pthread_attr_init(&attr)); in TEST()
991 ASSERT_EQ(0, pthread_attr_getscope(&attr, &scope)); in TEST()
996 pthread_condattr_t attr; in TEST() local
997 pthread_condattr_init(&attr); in TEST()
1000 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1004 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST()
1009 pthread_condattr_t attr; in TEST() local
1010 pthread_condattr_init(&attr); in TEST()
1012 ASSERT_EQ(0, pthread_condattr_setclock(&attr, CLOCK_REALTIME)); in TEST()
1014 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1017 ASSERT_EQ(0, pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)); in TEST()
1018 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1021 ASSERT_EQ(EINVAL, pthread_condattr_setclock(&attr, CLOCK_PROCESS_CPUTIME_ID)); in TEST()
1026 pthread_condattr_t attr; in TEST() local
1027 pthread_condattr_init(&attr); in TEST()
1029 ASSERT_EQ(0, pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)); in TEST()
1030 ASSERT_EQ(0, pthread_condattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)); in TEST()
1033 ASSERT_EQ(0, pthread_cond_init(&cond_var, &attr)); in TEST()
1038 attr = static_cast<pthread_condattr_t>(*reinterpret_cast<uint32_t*>(cond_var.__private)); in TEST()
1040 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1043 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST()
1314 pthread_mutexattr_t attr; in TEST() local
1315 ASSERT_EQ(0, pthread_mutexattr_init(&attr)); in TEST()
1319 ASSERT_EQ(0, pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)); in TEST()
1320 ASSERT_EQ(0, pthread_mutexattr_gettype(&attr, &attr_type)); in TEST()
1323 ASSERT_EQ(0, pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK)); in TEST()
1324 ASSERT_EQ(0, pthread_mutexattr_gettype(&attr, &attr_type)); in TEST()
1327 ASSERT_EQ(0, pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)); in TEST()
1328 ASSERT_EQ(0, pthread_mutexattr_gettype(&attr, &attr_type)); in TEST()
1331 ASSERT_EQ(0, pthread_mutexattr_destroy(&attr)); in TEST()
1347 pthread_mutexattr_t attr; in init() local
1348 ASSERT_EQ(0, pthread_mutexattr_init(&attr)); in init()
1349 ASSERT_EQ(0, pthread_mutexattr_settype(&attr, mutex_type)); in init()
1350 ASSERT_EQ(0, pthread_mutex_init(&lock, &attr)); in init()
1351 ASSERT_EQ(0, pthread_mutexattr_destroy(&attr)); in init()