Home
last modified time | relevance | path

Searched refs:mta (Results 1 – 25 of 54) sorted by relevance

123

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/
D1-1.c22 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()
D3-1.c34 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()
D3-4.c34 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()
D3-2.c35 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()
D3-3.c34 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()
D2-1.c44 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/
Dlock_impl_posix.cc58 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/
D2-1.c28 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()
D3-1.c26 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()
D1-1.c24 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/
D3-1.c30 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/
D1-1.c44 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/
D3-1.c36 pthread_mutexattr_t mta; in main() local
41 memset(&mta, 0, sizeof(mta)); in main()
44 ret = pthread_mutexattr_getpshared(&mta, &pshared); in main()
D1-2.c35 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()
D1-3.c35 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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/
D1-3.c30 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()
D1-4.c30 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()
D1-5.c30 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()
D1-2.c30 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()
D1-1.c29 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/
D1-2.c35 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_setprotocol/
D1-1.c27 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_mutexattr_getprotocol/
D1-2.c23 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()
D1-1.c27 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_mutex_destroy/
D1-1.c23 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()

123