/third_party/musl/libc-test/src/functional/ |
D | pthread_mutex.c | 127 T(pthread_mutexattr_settype(&a, PTHREAD_MUTEX_ERRORCHECK)); in test_mutexattr() 129 if (i != PTHREAD_MUTEX_ERRORCHECK) in test_mutexattr() 130 …("setting error check mutex type failed failed: got %d, wanted %d\n", i, PTHREAD_MUTEX_ERRORCHECK); in test_mutexattr() 143 i = test_relock(PTHREAD_MUTEX_ERRORCHECK); in main() 150 i = test_unlock(PTHREAD_MUTEX_ERRORCHECK); in main() 157 i = test_unlock_other(PTHREAD_MUTEX_ERRORCHECK); in main()
|
D | pthread_mutex_pi.c | 130 T(pthread_mutexattr_settype(&a, PTHREAD_MUTEX_ERRORCHECK)); in test_mutexattr() 132 if (i != PTHREAD_MUTEX_ERRORCHECK) in test_mutexattr() 133 …("setting error check mutex type failed failed: got %d, wanted %d\n", i, PTHREAD_MUTEX_ERRORCHECK); in test_mutexattr() 146 i = test_relock(PTHREAD_MUTEX_ERRORCHECK); in main() 153 i = test_unlock(PTHREAD_MUTEX_ERRORCHECK); in main() 160 i = test_unlock_other(PTHREAD_MUTEX_ERRORCHECK); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
D | 2-3.c | 78 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 93 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"}, { 97 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"}, { 103 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 115 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 125 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 133 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0, 215 if (td->mtype == PTHREAD_MUTEX_ERRORCHECK) { in child()
|
D | 1-2.c | 95 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 110 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"}, { 114 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"}, { 120 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 132 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 142 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 150 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/ |
D | stress.c | 95 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 112 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 121 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 132 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 146 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 159 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 172 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | stress2.c | 95 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 112 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 121 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 132 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 146 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 159 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 172 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | stress1.c | 120 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 137 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 146 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 157 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 171 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 184 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 197 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
D | 1-2.c | 109 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 126 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 135 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 146 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 160 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 173 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 186 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
D | 2-2.c | 111 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 120 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 131 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 145 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 158 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 171 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | 2-3.c | 146 if ((data.type == PTHREAD_MUTEX_ERRORCHECK) in clnp3() 231 0, 0, PTHREAD_MUTEX_ERRORCHECK, "Errorcheck mutex"} in main() 238 1, 0, PTHREAD_MUTEX_ERRORCHECK, in main() 244 1, 1, PTHREAD_MUTEX_ERRORCHECK, in main() 250 0, 1, PTHREAD_MUTEX_ERRORCHECK, "Errorcheck pshared mutex"} in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 2-7.c | 84 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 93 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 104 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 118 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 131 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 144 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | 2-4.c | 83 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 92 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 103 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 117 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 130 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 143 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | 4-2.c | 82 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 91 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 102 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 116 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 129 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 142 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | 2-6.c | 125 if ((data.type == PTHREAD_MUTEX_ERRORCHECK) in clnp3() 222 0, 0, PTHREAD_MUTEX_ERRORCHECK, "Errorcheck mutex"} in main() 229 1, 0, PTHREAD_MUTEX_ERRORCHECK, in main() 235 1, 1, PTHREAD_MUTEX_ERRORCHECK, in main() 241 0, 1, PTHREAD_MUTEX_ERRORCHECK, "Errorcheck pshared mutex"} in main()
|
D | 2-5.c | 184 0, 0, PTHREAD_MUTEX_ERRORCHECK, "Errorcheck mutex"}, in main() 189 1, 0, PTHREAD_MUTEX_ERRORCHECK, in main() 193 1, 1, PTHREAD_MUTEX_ERRORCHECK, in main() 198 0, 1, PTHREAD_MUTEX_ERRORCHECK, in main()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
D | stress2.c | 103 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 112 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 123 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 137 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 150 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 163 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
D | stress1.c | 127 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 136 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 147 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 161 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 174 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 187 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
D | 2-1.c | 110 #define PTHREAD_MUTEX_ERRORCHECK 0 macro 127 PTHREAD_MUTEX_ERRORCHECK, 0, 0, 0, "Errorcheck mutex"} 136 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 0, "Pshared errorcheck mutex"} 147 PTHREAD_MUTEX_ERRORCHECK, 1, 0, 1, 161 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 1, 174 PTHREAD_MUTEX_ERRORCHECK, 0, 1, 0, 187 PTHREAD_MUTEX_ERRORCHECK, 1, 1, 0,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_gettype/ |
D | 1-4.c | 40 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 53 if (type != PTHREAD_MUTEX_ERRORCHECK) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/ |
D | 1-1.c | 57 if (pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK) != 0) { in main() 66 if (type != PTHREAD_MUTEX_ERRORCHECK) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
D | 4-2.c | 94 PTHREAD_MUTEX_ERRORCHECK, 0, 0, "Errorcheck mutex"} 105 PTHREAD_MUTEX_ERRORCHECK, 1, 0, "Pshared Errorcheck mutex"} 117 PTHREAD_MUTEX_ERRORCHECK, 1, 1,
|
D | 1-2.c | 96 PTHREAD_MUTEX_ERRORCHECK, 0, 0, "Errorcheck mutex"} 107 PTHREAD_MUTEX_ERRORCHECK, 1, 0, "Pshared Errorcheck mutex"} 119 PTHREAD_MUTEX_ERRORCHECK, 1, 1,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/ |
D | 5-2.c | 83 PTHREAD_MUTEX_ERRORCHECK, 0, "Errorcheck mutex"} 92 PTHREAD_MUTEX_ERRORCHECK, 1, "Pshared Errorcheck mutex"}
|
D | 2-2.c | 82 PTHREAD_MUTEX_ERRORCHECK, 0, "Errorcheck mutex"} 91 PTHREAD_MUTEX_ERRORCHECK, 1, "Pshared Errorcheck mutex"}
|
/third_party/musl/src/thread/ |
D | pthread_mutex_timedlock.c | 49 if ((type&3) == PTHREAD_MUTEX_ERRORCHECK) return e; in pthread_mutex_timedlock_pi() 78 if ((type&3) == PTHREAD_MUTEX_ERRORCHECK in __pthread_mutex_timedlock()
|