Home
last modified time | relevance | path

Searched refs:new_th (Results 1 – 25 of 81) sorted by relevance

1234

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
D1-1.c43 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()
D4-2.c40 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()
D4-1.c47 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()
D3-1.c42 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()
D2-1.c42 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/
D1-1.c33 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/
D5-1.c35 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()
D1-3.c89 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/
D6-2.c47 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()
D3-1.c77 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()
D5-1.c33 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/
D4-1.c30 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()
D1-1.c34 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()
D2-1.c36 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/
D2-1.c37 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/
D3-1.c41 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/
D2-1.c63 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()
D1-1.c88 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/
D1-2.c67 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()
D2-1.c63 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()
D1-1.c68 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/
D3-1.c71 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/
D1-2.c80 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/
D2-1.c83 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()
D1-2.c88 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()

1234