Searched refs:thread2 (Results 1 - 7 of 7) sorted by relevance

/haiku-fatelf/src/tests/system/kernel/
H A Dsem_acquire_test1.cpp24 printf("thread2: going to acquire sem...\n");
26 printf("thread2: acquire_sem_etc() returned: %s\n", strerror(error));
43 thread_id thread2 = spawn_thread(&thread_function2, "thread2", local
45 resume_thread(thread2);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_trywrlock/
H A D1-1.c69 pthread_t thread1, thread2; local
149 printf("main: create thread2\n");
150 if(pthread_create(&thread2, NULL, fn_wr, NULL) != 0)
152 printf("main: Error creating thread2\n");
156 /* We do not expect thread2 to block */
163 printf("Test FAILED: thread2 should not block on pthread_rwlock_trywrlock()\n");
174 printf("Test FAILED: thread2 should get EBUSY\n");
186 if(pthread_join(thread2, NULL) != 0)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_wrlock/
H A D1-1.c77 pthread_t thread1, thread2; local
168 printf("main: create thread2\n");
169 if(pthread_create(&thread2, NULL, fn_wr, NULL) != 0)
171 printf("main: Error creating thread2\n");
182 printf("Test FAILED: thread2 should have block\n");
187 printf("thread2 in unexpected state %d\n", thread_state);
199 if(pthread_join(thread2, NULL) != 0)
201 printf("main: Error joining thread2\n");
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
H A D5-1.c103 printf("thread2: Error at pthread_rwlock_init\n");
113 printf("thread2: attempt timed read-lock\n");
117 printf("thread2: timed read-lock expired\n");
122 printf("thread2: acquired read lock\n");
124 printf("thread2: unlock read lock\n");
127 printf("thread2: failed to release read lock\n");
133 printf("thread2: Error in pthread_rwlock_timedrdlock().\n");
139 printf("thread2: Error at pthread_rwlockattr_destroy()\n");
151 pthread_t thread1, thread2; local
196 printf("main: create thread2\
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
H A D5-1.c110 printf("thread2: Error at pthread_rwlock_init\n");
119 printf("thread2: attempt timed lock for writing\n");
123 printf("thread2: timer expired\n");
128 printf("thread2: acquired write lock\n");
130 printf("thread2: unlock write lock\n");
133 printf("thread2: failed to release write lock\n");
139 printf("thread2: Error in pthread_rwlock_timedwrlock().\n");
145 printf("thread2: Error at pthread_rwlock_destroy()\n");
157 pthread_t thread1, thread2; local
202 printf("main: create thread2\
[all...]
H A D1-1.c101 pthread_t thread0, thread1, thread2; local
232 printf("main: create thread2\n");
233 if(pthread_create(&thread2, NULL, fn_wr, NULL) != 0)
235 printf("Error when creating thread2\n");
239 /* we expect thread2 to expire blocking after timeout */
261 printf("thread2 correctly expired at timeout.\n");
266 printf("Test FAILED: for thread2, wait is not terminated even when the timer expired\n");
271 printf("Unexpected state for thread2 %d\n", thread_state);
H A D3-1.c124 pthread_t thread0, thread1, thread2; local
260 printf("main: create thread2\n");
261 if(pthread_create(&thread2, NULL, fn_wr, NULL) != 0)
263 printf("Error when creating thread2\n");
267 /* we expect thread2 to expire blocking after timeout */
290 printf("thread2 correctly expired at timeout.\n");
295 printf("Test FAILED: for thread2, wait is not terminated "
301 printf("Unexpected state for thread2 %d\n", thread_state);

Completed in 45 milliseconds