/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
D | 1-1.c | 33 static int thread_state; variable 48 thread_state = ENTERED_THREAD; in fn_wr() 67 thread_state = EXITING_THREAD; in fn_wr() 90 thread_state = NOT_CREATED_THREAD; in main() 102 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 104 if (thread_state == EXITING_THREAD) { in main() 108 } else if (thread_state != ENTERED_THREAD) { in main() 126 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 128 if (thread_state == ENTERED_THREAD) { in main() 132 } else if (thread_state != EXITING_THREAD) { in main() [all …]
|
D | 2-1.c | 44 static int thread_state; variable 70 thread_state = ENTERED_THREAD; in th_fn() 86 thread_state = EXITING_THREAD; in th_fn() 111 thread_state = NOT_CREATED_THREAD; in main() 121 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 123 if (thread_state == EXITING_THREAD) { in main() 128 } else if (thread_state != ENTERED_THREAD) { in main() 129 printf("sig_thread in unexpected state %d\n", thread_state); in main() 155 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 157 if (thread_state == 3) { in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/ |
D | 3-1.c | 36 static int thread_state; variable 54 thread_state = ENTERED_THREAD; in fn_chld() 72 thread_state = EXITING_THREAD; in fn_chld() 91 thread_state = NOT_CREATED_THREAD; in main() 101 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 103 if (thread_state == EXITING_THREAD) { in main() 108 } else if (thread_state != ENTERED_THREAD) { in main() 109 printf("Unexpected thread state: %d\n", thread_state); in main() 123 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 130 if (thread_state == EXITING_THREAD) { in main() [all …]
|
D | 1-1.c | 31 static int thread_state; variable 39 thread_state = ENTERED_THREAD; in fn_chld() 52 thread_state = EXITING_THREAD; in fn_chld() 84 thread_state = NOT_CREATED_THREAD; in main() 94 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 96 if (thread_state == EXITING_THREAD) { in main() 101 } else if (thread_state != ENTERED_THREAD) { in main() 102 printf("Unexpected thread state: %d\n", thread_state); in main() 126 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 128 if (thread_state == ENTERED_THREAD) { in main() [all …]
|
D | 3-2.c | 34 static int thread_state; variable 60 thread_state = ENTERED_THREAD; in fn_chld() 78 thread_state = EXITING_THREAD; in fn_chld() 98 thread_state = NOT_CREATED_THREAD; in main() 108 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 110 if (thread_state == EXITING_THREAD) { in main() 115 } else if (thread_state != ENTERED_THREAD) { in main() 148 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 150 if (thread_state == ENTERED_THREAD) { in main() 154 } else if (thread_state != EXITING_THREAD) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
D | 4-1.c | 34 static int thread_state; variable 69 thread_state = ENTERED_THREAD; in th_fn() 85 thread_state = EXITING_THREAD; in th_fn() 107 thread_state = NOT_CREATED_THREAD; in main() 117 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 119 if (thread_state == EXITING_THREAD) { in main() 123 } else if (thread_state != ENTERED_THREAD) { in main() 124 printf("Unexpected thread state: %d\n", thread_state); in main() 150 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 152 if (thread_state == EXITING_THREAD) { in main() [all …]
|
D | 1-1.c | 34 static int thread_state; variable 49 thread_state = ENTERED_THREAD; in fn_rd() 67 thread_state = EXITING_THREAD; in fn_rd() 92 thread_state = NOT_CREATED_THREAD; in main() 105 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 107 if (thread_state == ENTERED_THREAD) { in main() 112 } else if (thread_state != EXITING_THREAD) { in main() 137 thread_state = NOT_CREATED_THREAD; in main() 148 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 150 if (thread_state == EXITING_THREAD) { in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/ |
D | 1-1.c | 36 static int thread_state; variable 52 thread_state = ENTERED_THREAD; in fn_rd_1() 67 thread_state = EXITING_THREAD; in fn_rd_1() 74 thread_state = ENTERED_THREAD; in fn_rd_2() 83 thread_state = EXITING_THREAD; in fn_rd_2() 111 thread_state = NOT_CREATED_THREAD; in main() 125 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 127 if (thread_state == ENTERED_THREAD) { in main() 132 } else if (thread_state != EXITING_THREAD) { in main() 134 thread_state); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 1-1.c | 41 static int thread_state; variable 59 thread_state = ENTERED_THREAD; in fn_wr() 87 thread_state = EXITING_THREAD; in fn_wr() 103 thread_state = NOT_CREATED_THREAD; in main() 115 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 117 if (thread_state == EXITING_THREAD) { in main() 123 } else if (thread_state == ENTERED_THREAD) { in main() 128 printf("Unexpected state for thread0 %d\n", thread_state); in main() 145 thread_state = NOT_CREATED_THREAD; in main() 160 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() [all …]
|
D | 3-1.c | 43 static int thread_state; variable 61 thread_state = ENTERED_THREAD; in fn_wr() 107 thread_state = EXITING_THREAD; in fn_wr() 123 thread_state = NOT_CREATED_THREAD; in main() 135 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() 137 if (thread_state == EXITING_THREAD) { in main() 143 } else if (thread_state == ENTERED_THREAD) { in main() 148 printf("Unexpected state for thread0 %d\n", thread_state); in main() 165 thread_state = NOT_CREATED_THREAD; in main() 180 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main() [all …]
|
D | 5-1.c | 34 static int thread_state; variable 50 thread_state = ENTERED_THREAD; in fn_wr_1() 88 thread_state = EXITING_THREAD; in fn_wr_1() 95 thread_state = ENTERED_THREAD; in fn_wr_2() 132 thread_state = EXITING_THREAD; in fn_wr_2() 143 thread_state = NOT_CREATED_THREAD; in main() 156 } while (thread_state != 3 && cnt++ < 5); in main() 158 if (thread_state == 3) { in main() 165 } else if (thread_state == ENTERED_THREAD) { in main() 169 printf("Unexpected state for thread1 %d\n", thread_state); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
D | 1-1.c | 33 static int thread_state; variable 48 thread_state = ENTERED_THREAD; in fn_wr() 59 thread_state = EXITING_THREAD; in fn_wr() 85 thread_state = NOT_CREATED_THREAD; in main() 98 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 100 if (thread_state == ENTERED_THREAD) { in main() 105 } else if (thread_state != EXITING_THREAD) { in main() 107 thread_state); in main() 140 thread_state = NOT_CREATED_THREAD; in main() 151 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/ |
D | 1-2.c | 36 static volatile int thread_state; variable 45 thread_state = ENTERED_THREAD; in fn_chld() 67 thread_state = EXITING_THREAD; in fn_chld() 93 thread_state = NOT_CREATED_THREAD; in main() 104 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 106 if (thread_state == EXITING_THREAD) { in main() 110 } else if (thread_state != ENTERED_THREAD) { in main() 111 printf("main: Unexpected thread state %d\n", thread_state); in main() 125 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 127 if (thread_state == ENTERED_THREAD) { in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
D | 1-2.c | 32 static volatile int thread_state; variable 41 thread_state = ENTERED_THREAD; in fn_chld() 66 thread_state = EXITING_THREAD; in fn_chld() 94 thread_state = NOT_CREATED_THREAD; in main() 107 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 109 if (thread_state == EXITING_THREAD) { in main() 113 } else if (thread_state != ENTERED_THREAD) { in main() 114 printf("main: Unexpected thread state %d\n", thread_state); in main() 128 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 130 if (thread_state == ENTERED_THREAD) { in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
D | 5-1.c | 37 static int thread_state; variable 43 thread_state = ENTERED_THREAD; in fn_rd_1() 81 thread_state = EXITING_THREAD; in fn_rd_1() 88 thread_state = ENTERED_THREAD; in fn_rd_2() 126 thread_state = EXITING_THREAD; in fn_rd_2() 137 thread_state = NOT_CREATED_THREAD; in main() 151 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() 153 if (thread_state == EXITING_THREAD) { in main() 160 } else if (thread_state == ENTERED_THREAD) { in main() 165 printf("Unexpected state for thread1 %d\n", thread_state); in main() [all …]
|
D | 1-1.c | 48 static int thread_state; variable 54 thread_state = ENTERED_THREAD; in fn_rd() 83 thread_state = EXITING_THREAD; in fn_rd() 105 thread_state = NOT_CREATED_THREAD; in main() 120 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() 122 if (thread_state == ENTERED_THREAD) { in main() 127 } else if (thread_state != EXITING_THREAD) { in main() 128 printf("Unexpected thread state %d\n", thread_state); in main() 150 thread_state = NOT_CREATED_THREAD; in main() 161 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() [all …]
|
D | 3-1.c | 51 static int thread_state; variable 57 thread_state = ENTERED_THREAD; in fn_rd() 97 thread_state = EXITING_THREAD; in fn_rd() 119 thread_state = NOT_CREATED_THREAD; in main() 134 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() 136 if (thread_state == ENTERED_THREAD) { in main() 141 } else if (thread_state != EXITING_THREAD) { in main() 142 printf("Unexpected thread state %d\n", thread_state); in main() 164 thread_state = NOT_CREATED_THREAD; in main() 175 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() [all …]
|
D | 2-1.c | 45 static int thread_state; variable 53 thread_state = ENTERED_THREAD; in fn_rd() 83 thread_state = EXITING_THREAD; in fn_rd() 108 thread_state = NOT_CREATED_THREAD; in main() 121 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main() 123 if (thread_state == EXITING_THREAD) { in main() 129 } else if (thread_state == ENTERED_THREAD) { in main() 134 printf("Unexpected thread state %d\n", thread_state); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
D | 1-1.c | 35 static int thread_state; variable 55 thread_state = ENTERED_THREAD; in fn_rd() 71 thread_state = PASSED_RLOCK1; in fn_rd() 87 thread_state = PASSED_RLOCK2; in fn_rd() 103 thread_state = EXITING_THREAD; in fn_rd() 127 thread_state = NOT_CREATED_THREAD; in main() 139 } while (thread_state != PASSED_RLOCK2 && cnt++ < 3); in main() 141 if (thread_state == ENTERED_THREAD) { in main() 144 } else if (thread_state == PASSED_RLOCK1) { in main() 148 } else if (thread_state != PASSED_RLOCK2) { in main() [all …]
|
D | 2-1.c | 32 static int thread_state; variable 48 thread_state = ENTERED_THREAD; in fn_wr() 64 thread_state = EXITING_THREAD; in fn_wr() 87 thread_state = NOT_CREATED_THREAD; in main() 99 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 101 if (thread_state == EXITING_THREAD) { in main() 104 } else if (thread_state != ENTERED_THREAD) { in main() 105 printf("Unexpected thread state: %d\n", thread_state); in main() 120 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 122 if (thread_state != EXITING_THREAD) { in main()
|
D | 4-2.c | 33 static int rc, thread_state; variable 47 thread_state = ENTERED_THREAD; in fn_unlk() 50 thread_state = EXITING_THREAD; in fn_unlk() 78 thread_state = NOT_CREATED_THREAD; in main() 90 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main() 92 if (thread_state != EXITING_THREAD) { in main() 93 printf("Unexpected thread state %d\n", thread_state); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/ |
D | 1-1.c | 27 static int thread_state; variable 32 thread_state = 2; in fn_rd() 49 thread_state = 3; in fn_rd() 58 thread_state = 0; in main() 76 thread_state = 1; in main() 89 } while (thread_state != 3 && cnt++ < 3); in main() 91 if (thread_state == 2) { in main() 94 } else if (thread_state != 3) { in main()
|
D | 2-1.c | 27 static int thread_state; variable 32 thread_state = 2; in fn_rd() 49 thread_state = 3; in fn_rd() 69 thread_state = 1; in main() 82 } while (thread_state != 3 && cnt++ < 3); in main() 84 if (thread_state == 2) { in main() 87 } else if (thread_state != 3) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_destroy/ |
D | 2-1.c | 34 static int thread_state; variable 45 thread_state = ENTERED_THREAD; in fn_chld() 58 thread_state = EXITING_THREAD; in fn_chld() 76 thread_state = NOT_CREATED_THREAD; in main() 86 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 88 if (thread_state == EXITING_THREAD) { in main() 93 } else if (thread_state != ENTERED_THREAD) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/ |
D | 4-1.c | 33 static int thread_state; variable 45 thread_state = ENTERED_THREAD; in fn_chld() 57 thread_state = EXITING_THREAD; in fn_chld() 89 thread_state = NOT_CREATED_THREAD; in main() 99 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main() 101 if (thread_state == EXITING_THREAD) { in main() 106 } else if (thread_state != ENTERED_THREAD) { in main()
|