/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
D | 1-1.c | 43 pthread_t new_th; in main() local 60 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main() 66 if (pthread_detach(new_th) != 0) { in main() 72 ret = pthread_join(new_th, NULL); in main() 75 pthread_cancel(new_th); in main()
|
D | 4-2.c | 40 pthread_t new_th; in main() local 44 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 53 if (pthread_join(new_th, NULL) == EDEADLK) { in main() 59 ret = pthread_detach(new_th); in main()
|
D | 4-1.c | 47 pthread_t new_th; in main() local 64 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main() 70 ret = pthread_detach(new_th); in main() 73 pthread_cancel(new_th); in main()
|
D | 3-1.c | 42 pthread_t new_th; in main() local 59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main() 65 ret = pthread_detach(new_th); in main() 68 pthread_cancel(new_th); in main()
|
D | 2-1.c | 42 pthread_t new_th; in main() local 59 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main() 65 if (pthread_detach(new_th) != 0) { in main() 71 ret = pthread_cancel(new_th); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/ |
D | 1-1.c | 33 pthread_t new_th; in main() local 36 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 44 if (pthread_equal(new_th, new_th) == 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/ |
D | 5-1.c | 35 pthread_t new_th; in main() local 39 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 45 pthread_join(new_th, NULL); in main() 49 ret = pthread_cancel(new_th); in main()
|
D | 1-3.c | 89 pthread_t new_th; in main() local 102 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 113 if (pthread_cancel(new_th) != 0) { in main() 125 if (pthread_join(new_th, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
D | 6-2.c | 47 pthread_t new_th; in main() local 50 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 55 ret = pthread_join(new_th, NULL); in main() 66 ret = pthread_join(new_th, NULL); in main()
|
D | 3-1.c | 77 pthread_t new_th; in main() local 81 err = pthread_create(&new_th, NULL, a_thread_func, NULL); in main() 90 err = pthread_cancel(new_th); in main() 96 err = pthread_join(new_th, NULL); in main()
|
D | 5-1.c | 33 pthread_t new_th; in main() local 36 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 41 ret = pthread_join(new_th, NULL); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 4-1.c | 30 pthread_t new_th; in main() local 33 ret = pthread_create(&new_th, NULL, a_thread_func, NULL); in main() 39 ret = pthread_join(new_th, NULL); in main() 47 if (pthread_equal(new_th, self_th) == 0) { in main()
|
D | 1-1.c | 34 pthread_t main_th, new_th; in main() local 37 ret = pthread_create(&new_th, NULL, a_thread_func, NULL); in main() 45 if (pthread_equal(new_th, main_th) != 0) { in main() 50 ret = pthread_join(new_th, NULL); in main()
|
D | 2-1.c | 36 pthread_t new_th; in main() local 41 ret = pthread_create(&new_th, NULL, a_thread_func, NULL); in main() 48 ret = pthread_join(new_th, NULL); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/ |
D | 2-1.c | 37 pthread_t new_th; in main() local 55 if (pthread_create(&new_th, &new_attr, a_thread_func, NULL) != 0) { in main() 62 ret_val = pthread_join(new_th, NULL); in main() 69 ret_val = pthread_detach(new_th); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getcpuclockid/speculative/ |
D | 3-1.c | 41 pthread_t new_th; in main() local 43 rc = pthread_create(&new_th, NULL, thread_func, NULL); in main() 49 rc = pthread_join(new_th, NULL); in main() 55 rc = pthread_getcpuclockid(new_th, &cid); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_testcancel/ |
D | 2-1.c | 63 pthread_t new_th; in main() local 70 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 80 if (pthread_cancel(new_th) != 0) { in main() 90 if (pthread_join(new_th, NULL) != 0) { in main()
|
D | 1-1.c | 88 pthread_t new_th; in main() local 101 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 112 if (pthread_cancel(new_th) != 0) { in main() 124 if (pthread_join(new_th, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcancelstate/ |
D | 1-2.c | 67 pthread_t new_th; in main() local 74 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 84 if (pthread_cancel(new_th) != 0) { in main() 94 if (pthread_join(new_th, NULL) != 0) { in main()
|
D | 2-1.c | 63 pthread_t new_th; in main() local 70 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 80 if (pthread_cancel(new_th) != 0) { in main() 90 if (pthread_join(new_th, NULL) != 0) { in main()
|
D | 1-1.c | 68 pthread_t new_th; in main() local 75 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 85 if (pthread_cancel(new_th) != 0) { in main() 95 if (pthread_join(new_th, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
D | 3-1.c | 71 pthread_t new_th; in main() local 75 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 85 if (pthread_cancel(new_th) != 0) { in main() 91 pthread_join(new_th, NULL); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_push/ |
D | 1-2.c | 80 pthread_t new_th; in main() local 88 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 98 if (pthread_cancel(new_th) != 0) { in main() 108 if (pthread_join(new_th, &value_ptr) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setcanceltype/ |
D | 2-1.c | 83 pthread_t new_th; in main() local 96 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 107 if (pthread_cancel(new_th) != 0) { in main() 119 if (pthread_join(new_th, NULL) != 0) { in main()
|
D | 1-2.c | 88 pthread_t new_th; in main() local 101 if (pthread_create(&new_th, NULL, a_thread_func, NULL) != 0) { in main() 112 if (pthread_cancel(new_th) != 0) { in main() 124 if (pthread_join(new_th, NULL) != 0) { in main()
|