/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_barrier_wait/ |
H A D | 3-1.c | 36 static int thread_state; variable 54 thread_state = ENTERED_THREAD; 73 thread_state = EXITING_THREAD; 94 thread_state = NOT_CREATED_THREAD; 105 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 107 if(thread_state == EXITING_THREAD) 114 else if(thread_state != ENTERED_THREAD) 116 printf("Unexpected thread state: %d\n", thread_state); 131 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 139 if(thread_state [all...] |
H A D | 1-1.c | 31 static int thread_state; variable 39 thread_state = ENTERED_THREAD; 54 thread_state = EXITING_THREAD; 87 thread_state = NOT_CREATED_THREAD; 98 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 100 if(thread_state == EXITING_THREAD) 107 else if(thread_state != ENTERED_THREAD) 109 printf("Unexpected thread state: %d\n", thread_state); 135 }while (thread_state != EXITING_THREAD && cnt++ < 3); 137 if(thread_state [all...] |
H A D | 3-2.c | 34 static int thread_state; variable 61 thread_state = ENTERED_THREAD; 80 thread_state = EXITING_THREAD; 102 thread_state = NOT_CREATED_THREAD; 113 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 115 if(thread_state == EXITING_THREAD) 122 else if(thread_state != ENTERED_THREAD) 159 }while (thread_state != EXITING_THREAD && cnt++ < 3); 161 if(thread_state == ENTERED_THREAD) 167 else if(thread_state ! [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 1-1.c | 33 static int thread_state; variable 35 /* thread_state indicates child thread state: 48 thread_state = ENTERED_THREAD; 69 thread_state = EXITING_THREAD; 94 thread_state = NOT_CREATED_THREAD; 107 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 109 if(thread_state == EXITING_THREAD) 115 else if(thread_state != ENTERED_THREAD) 135 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 137 if(thread_state [all...] |
H A D | 2-1.c | 34 /* thread_state indicates child thread state: 44 static int thread_state; variable 72 thread_state = ENTERED_THREAD; 88 thread_state = EXITING_THREAD; 113 thread_state = NOT_CREATED_THREAD; 124 }while(thread_state != EXITING_THREAD && cnt++ < 3); 126 if(thread_state == EXITING_THREAD) 132 else if(thread_state != ENTERED_THREAD) 134 printf("sig_thread in unexpected state %d\n", thread_state); 162 }while(thread_state ! [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_spin_lock/ |
H A D | 1-2.c | 32 volatile static int thread_state; variable 41 thread_state = ENTERED_THREAD; 64 thread_state = EXITING_THREAD; 93 thread_state = NOT_CREATED_THREAD; 107 }while (thread_state != EXITING_THREAD && cnt++ < 3); 109 if(thread_state == EXITING_THREAD) 114 else if(thread_state != ENTERED_THREAD) 116 printf("main: Unexpected thread state %d\n", thread_state); 131 }while (thread_state != EXITING_THREAD && cnt++ < 3); 133 if(thread_state [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_spin_unlock/ |
H A D | 1-2.c | 36 volatile static int thread_state; variable 45 thread_state = ENTERED_THREAD; 65 thread_state = EXITING_THREAD; 92 thread_state = NOT_CREATED_THREAD; 104 }while (thread_state != EXITING_THREAD && cnt++ < 3); 106 if(thread_state == EXITING_THREAD) 111 else if(thread_state != ENTERED_THREAD) 113 printf("main: Unexpected thread state %d\n", thread_state); 128 }while (thread_state != EXITING_THREAD && cnt++ < 3); 130 if(thread_state [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_tryrdlock/ |
H A D | 1-1.c | 36 static int thread_state; variable 38 /* thread_state indicates child thread state: 52 thread_state = ENTERED_THREAD; 67 thread_state = EXITING_THREAD; 74 thread_state = ENTERED_THREAD; 84 thread_state = EXITING_THREAD; 112 thread_state = NOT_CREATED_THREAD; 127 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 129 if(thread_state == ENTERED_THREAD) 135 else if(thread_state ! [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_rdlock/ |
H A D | 1-1.c | 34 static int thread_state; variable 36 /* thread_state indicates child thread state: 49 thread_state = ENTERED_THREAD; 68 thread_state = EXITING_THREAD; 94 thread_state = NOT_CREATED_THREAD; 108 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 110 if(thread_state == ENTERED_THREAD) 116 else if(thread_state != EXITING_THREAD) 147 thread_state = NOT_CREATED_THREAD; 159 }while (thread_state ! [all...] |
H A D | 4-1.c | 34 static int thread_state; variable 37 /* thread_state indicates child thread state: 72 thread_state = ENTERED_THREAD; 88 thread_state = EXITING_THREAD; 112 thread_state = NOT_CREATED_THREAD; 123 }while(thread_state != EXITING_THREAD && cnt++ < 3); 125 if(thread_state == EXITING_THREAD) 130 else if(thread_state != ENTERED_THREAD) 132 printf("Unexpected thread state: %d\n", thread_state); 160 }while(thread_state ! [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
H A D | 1-1.c | 33 static int thread_state; variable 36 /* thread_state indicates child thread state: 48 thread_state = ENTERED_THREAD; 60 thread_state = EXITING_THREAD; 88 thread_state = NOT_CREATED_THREAD; 102 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 104 if(thread_state == ENTERED_THREAD) 110 else if(thread_state != EXITING_THREAD) 112 printf("Unexpected thread state for thread1: %d\n", thread_state); 147 thread_state [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_unlock/ |
H A D | 2-1.c | 32 static int thread_state; variable 34 /* thread_state indicates child thread state: 48 thread_state = ENTERED_THREAD; 64 thread_state = EXITING_THREAD; 89 thread_state = NOT_CREATED_THREAD; 102 }while (thread_state != EXITING_THREAD && cnt++ < 3); 104 if(thread_state == EXITING_THREAD) 109 else if(thread_state != ENTERED_THREAD) 111 printf("Unexpected thread state: %d\n", thread_state); 115 /* thread_state [all...] |
H A D | 1-1.c | 35 static int thread_state; variable 37 /* thread_state indicates child thread state: 55 thread_state = ENTERED_THREAD; 71 thread_state = PASSED_RLOCK1; 87 thread_state = PASSED_RLOCK2; 103 thread_state = EXITING_THREAD; 129 thread_state = NOT_CREATED_THREAD; 142 }while (thread_state !=PASSED_RLOCK2 && cnt++ < 3); 144 if(thread_state == ENTERED_THREAD) 149 else if(thread_state [all...] |
H A D | 4-2.c | 33 static int rc, thread_state; variable 35 /* thread_state indicates child thread state: 47 thread_state = ENTERED_THREAD; 50 thread_state = EXITING_THREAD; 76 thread_state = NOT_CREATED_THREAD; 89 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 91 if(thread_state != EXITING_THREAD) 93 printf("Unexpected thread state %d\n", thread_state);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 5-1.c | 37 static int thread_state; variable 43 thread_state = ENTERED_THREAD; 89 thread_state = EXITING_THREAD; 96 thread_state = ENTERED_THREAD; 142 thread_state = EXITING_THREAD; 153 thread_state = NOT_CREATED_THREAD; 168 }while (thread_state !=EXITING_THREAD && cnt++ < 5); 170 if(thread_state == EXITING_THREAD) 179 else if(thread_state == ENTERED_THREAD) 186 printf("Unexpected state for thread1 %d\n", thread_state); [all...] |
H A D | 2-1.c | 32 /* thread_state indicates child thread state: 45 static int thread_state; variable 53 thread_state = ENTERED_THREAD; 87 thread_state = EXITING_THREAD; 114 thread_state = NOT_CREATED_THREAD; 128 }while (thread_state !=EXITING_THREAD && cnt++ < 5); 130 if(thread_state == EXITING_THREAD) 139 else if(thread_state == ENTERED_THREAD) 146 printf("Unexpected thread state %d\n", thread_state);
|
H A D | 1-1.c | 35 /* thread_state indicates child thread state: 48 static int thread_state; variable 54 thread_state = ENTERED_THREAD; 85 thread_state = EXITING_THREAD; 109 thread_state = NOT_CREATED_THREAD; 125 }while (thread_state !=EXITING_THREAD && cnt++ < 5); 127 if(thread_state == ENTERED_THREAD) 133 else if(thread_state != EXITING_THREAD) 135 printf("Unexpected thread state %d\n", thread_state); 160 thread_state [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 5-1.c | 34 static int thread_state; variable 38 /* thread_state indicates child thread state: 50 thread_state = ENTERED_THREAD; 96 thread_state = EXITING_THREAD; 103 thread_state = ENTERED_THREAD; 148 thread_state = EXITING_THREAD; 159 thread_state = NOT_CREATED_THREAD; 173 }while (thread_state !=3 && cnt++ < 5); 175 if(thread_state == 3) 184 else if(thread_state [all...] |
H A D | 2-1.c | 36 static int thread_state; variable 40 /* thread_state indicates child thread state: 54 thread_state = ENTERED_THREAD; 86 thread_state = EXITING_THREAD; 111 thread_state = NOT_CREATED_THREAD; 125 }while (thread_state !=EXITING_THREAD && cnt++ < 3); 127 if(thread_state == EXITING_THREAD) 138 else if(thread_state == ENTERED_THREAD) 145 printf("Unexpected thread state %d\n", thread_state);
|
H A D | 1-1.c | 41 static int thread_state; variable 45 /* thread_state indicates child thread state: 59 thread_state = ENTERED_THREAD; 93 thread_state = EXITING_THREAD; 110 thread_state = NOT_CREATED_THREAD; 123 }while (thread_state !=EXITING_THREAD && cnt++ < 2*TIMEOUT); 125 if(thread_state == EXITING_THREAD) 135 else if(thread_state == ENTERED_THREAD) 142 printf("Unexpected state for thread0 %d\n", thread_state); 161 thread_state [all...] |
H A D | 3-1.c | 43 static int thread_state; variable 47 /* thread_state indicates child thread state: 61 thread_state = ENTERED_THREAD; 116 thread_state = EXITING_THREAD; 133 thread_state = NOT_CREATED_THREAD; 146 }while (thread_state !=EXITING_THREAD && cnt++ < 2*TIMEOUT); 148 if(thread_state == EXITING_THREAD) 158 else if(thread_state == ENTERED_THREAD) 165 printf("Unexpected state for thread0 %d\n", thread_state); 184 thread_state [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_init/ |
H A D | 1-1.c | 27 static int thread_state; variable 32 thread_state = 2; 53 thread_state = 3; 62 thread_state=0; 80 thread_state = 1; 94 }while (thread_state !=3 && cnt++ < 3); 96 if(thread_state == 2) 101 else if(thread_state != 3)
|
H A D | 2-1.c | 27 static int thread_state; variable 32 thread_state = 2; 53 thread_state = 3; 72 thread_state = 1; 86 }while (thread_state !=3 && cnt++ < 3); 88 if(thread_state == 2) 93 else if(thread_state != 3)
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_barrier_destroy/ |
H A D | 2-1.c | 34 static int thread_state; variable 45 thread_state = ENTERED_THREAD; 61 thread_state = EXITING_THREAD; 80 thread_state = NOT_CREATED_THREAD; 91 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 93 if(thread_state == EXITING_THREAD) 100 else if(thread_state != ENTERED_THREAD)
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_barrier_init/ |
H A D | 4-1.c | 33 static int thread_state; variable 45 thread_state = ENTERED_THREAD; 60 thread_state = EXITING_THREAD; 93 thread_state = NOT_CREATED_THREAD; 104 }while (thread_state !=EXITING_THREAD && cnt++ < 2); 107 if(thread_state == EXITING_THREAD) 114 else if(thread_state != ENTERED_THREAD)
|