/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/ |
D | 1-1.c | 22 pthread_mutexattr_t mta; in main() local 26 if (pthread_mutexattr_init(&mta) != 0) { in main() 31 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main() 42 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL) != 0) { in main() 47 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main() 57 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 61 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main() 71 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_RECURSIVE) != 0) { in main() 76 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main() 86 if (pthread_mutexattr_destroy(&mta) != 0) { in main()
|
D | 3-1.c | 34 pthread_mutexattr_t mta; in main() local 37 if (pthread_mutexattr_init(&mta) != 0) { in main() 43 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 49 if (pthread_mutex_init(&mutex, &mta) != 0) { in main() 71 if (pthread_mutexattr_destroy(&mta) != 0) { in main()
|
D | 3-4.c | 34 pthread_mutexattr_t mta; in main() local 37 if (pthread_mutexattr_init(&mta) != 0) { in main() 43 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 49 if (pthread_mutex_init(&mutex, &mta) != 0) { in main() 76 if (pthread_mutexattr_destroy(&mta)) { in main()
|
D | 3-2.c | 35 pthread_mutexattr_t mta; variable 50 if (pthread_mutexattr_init(&mta) != 0) { in main() 56 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 62 if (pthread_mutex_init(&mutex, &mta) != 0) { in main() 92 if (pthread_mutexattr_destroy(&mta)) { in main()
|
D | 3-3.c | 34 pthread_mutexattr_t mta; in main() local 37 if (pthread_mutexattr_init(&mta) != 0) { in main() 43 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 49 if (pthread_mutex_init(&mutex, &mta) != 0) { in main()
|
D | 2-1.c | 44 pthread_mutexattr_t mta; in main() local 48 if (pthread_mutexattr_init(&mta) != 0) { in main() 54 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL) != 0) { in main() 60 if (pthread_mutex_init(&mutex, &mta) != 0) { in main()
|
/external/libchrome/base/synchronization/ |
D | lock_impl_posix.cc | 58 pthread_mutexattr_t mta; in LockImpl() local 59 int rv = pthread_mutexattr_init(&mta); in LockImpl() 63 rv = pthread_mutexattr_setprotocol(&mta, PTHREAD_PRIO_INHERIT); in LockImpl() 69 rv = pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK); in LockImpl() 72 rv = pthread_mutex_init(&native_handle_, &mta); in LockImpl() 74 rv = pthread_mutexattr_destroy(&mta); in LockImpl()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_destroy/ |
D | 2-1.c | 28 pthread_mutexattr_t mta; in main() local 31 if (pthread_mutexattr_init(&mta) != 0) { in main() 37 if (pthread_mutexattr_destroy(&mta) != 0) { in main() 43 if (pthread_mutexattr_init(&mta) != 0) { in main()
|
D | 3-1.c | 26 pthread_mutexattr_t mta; in main() local 29 if (pthread_mutexattr_init(&mta) != 0) { in main() 35 if (pthread_mutexattr_destroy(&mta) != 0) { in main()
|
D | 1-1.c | 24 pthread_mutexattr_t mta; in main() local 28 if ((rc = pthread_mutexattr_init(&mta)) != 0) { in main() 34 if (pthread_mutexattr_destroy(&mta) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/speculative/ |
D | 3-1.c | 30 pthread_mutexattr_t mta; in main() local 34 memset(&mta, 0, sizeof(mta)); in main() 37 ret = pthread_mutexattr_gettype(&mta, &type); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/ |
D | 1-1.c | 44 pthread_mutexattr_t mta; in main() local 48 if (pthread_mutexattr_init(&mta) != 0) { in main() 55 pthread_mutexattr_setpshared(&mta, in main() 65 pthread_mutexattr_setpshared(&mta, PTHREAD_PROCESS_SHARED)) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/ |
D | 3-1.c | 36 pthread_mutexattr_t mta; in main() local 41 memset(&mta, 0, sizeof(mta)); in main() 44 ret = pthread_mutexattr_getpshared(&mta, &pshared); in main()
|
D | 1-3.c | 35 pthread_mutexattr_t mta; in main() local 40 if (pthread_mutexattr_init(&mta) != 0) { in main() 46 ret = pthread_mutexattr_setpshared(&mta, PTHREAD_PROCESS_PRIVATE); in main() 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main()
|
D | 1-2.c | 35 pthread_mutexattr_t mta; in main() local 40 if (pthread_mutexattr_init(&mta) != 0) { in main() 46 ret = pthread_mutexattr_setpshared(&mta, PTHREAD_PROCESS_SHARED); in main() 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/ |
D | 1-2.c | 30 pthread_mutexattr_t mta; in main() local 34 if (pthread_mutexattr_init(&mta) != 0) { in main() 40 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_DEFAULT) != 0) { in main() 47 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main()
|
D | 1-3.c | 30 pthread_mutexattr_t mta; in main() local 34 if (pthread_mutexattr_init(&mta) != 0) { in main() 40 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL) != 0) { in main() 47 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main()
|
D | 1-5.c | 30 pthread_mutexattr_t mta; in main() local 34 if (pthread_mutexattr_init(&mta) != 0) { in main() 40 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_RECURSIVE) != 0) { in main() 47 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main()
|
D | 1-4.c | 30 pthread_mutexattr_t mta; in main() local 34 if (pthread_mutexattr_init(&mta) != 0) { in main() 40 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 47 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main()
|
D | 1-1.c | 29 pthread_mutexattr_t mta; in main() local 33 if (pthread_mutexattr_init(&mta) != 0) { in main() 39 if (pthread_mutexattr_gettype(&mta, &type) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/ |
D | 1-2.c | 35 pthread_mutexattr_t mta; in main() local 39 if (pthread_mutexattr_init(&mta) != 0) { in main() 51 if (pthread_mutexattr_setprioceiling(&mta, i)) { in main() 57 if (pthread_mutexattr_getprioceiling(&mta, &prioceiling) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprotocol/ |
D | 1-2.c | 23 pthread_mutexattr_t mta; in main() local 27 if (pthread_mutexattr_init(&mta) != 0) { in main() 38 if (pthread_mutexattr_setprotocol(&mta, protcls[i])) { in main() 44 if (pthread_mutexattr_getprotocol(&mta, &protocol) != 0) { in main()
|
D | 1-1.c | 27 pthread_mutexattr_t mta; in main() local 31 if (pthread_mutexattr_init(&mta) != 0) { in main() 37 if ((rc = pthread_mutexattr_getprotocol(&mta, &protocol)) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprotocol/ |
D | 1-1.c | 27 pthread_mutexattr_t mta; in main() local 31 if (pthread_mutexattr_init(&mta) != 0) { in main() 42 if (pthread_mutexattr_setprotocol(&mta, protcls[i]) != 0) { in main() 48 if (pthread_mutexattr_getprotocol(&mta, &protocol) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/ |
D | 1-1.c | 23 pthread_mutexattr_t mta; in main() local 27 if ((rc = pthread_mutexattr_init(&mta)) != 0) { in main() 34 if ((rc = pthread_mutex_init(&mutex1, &mta)) != 0) { in main() 46 if ((rc = pthread_mutexattr_destroy(&mta)) != 0) { in main()
|