Home | History | Annotate | Download | only in pthread_rwlock_init

Lines Matching defs:thread

16  * 2.  Create a child thread, the thread lock 'rwlock' for reading, shall not block.
60 pthread_t thread;
77 printf("main: create thread\n");
78 if (pthread_create(&thread, NULL, fn_rd, NULL) != 0) {
79 printf("main: failed to create thread\n");
85 /* We expect the thread not to block */
92 printf("Test FAILED: thread blocked on read lock\n");
95 printf("main: Unexpected thread state\n");
99 if (pthread_join(thread, NULL) != 0) {