Home
last modified time | relevance | path

Searched refs:THREAD_NUM (Results 1 – 13 of 13) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/
D2-1.c33 #define THREAD_NUM 6 macro
44 pthread_t threads[THREAD_NUM]; in main()
47 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); in main()
48 for (i = 0; i < THREAD_NUM; ++i) in main()
52 for (i = 0; i < THREAD_NUM; ++i) in main()
57 if (value != (THREAD_NUM) * LOOPS) { in main()
59 THREAD_NUM, LOOPS); in main()
61 (THREAD_NUM) * LOOPS, value); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/
D2-1.c35 #define THREAD_NUM 5 macro
71 pthread_t child_threads[THREAD_NUM]; in main()
75 printf("Initialize barrier with count = %d\n", THREAD_NUM); in main()
76 if (pthread_barrier_init(&barrier, NULL, THREAD_NUM) != 0) { in main()
86 printf("main: create %d child threads\n", THREAD_NUM); in main()
87 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main()
97 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main()
105 if (serial != 1 || (serial + normal_rt) != THREAD_NUM) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
D1-1.c30 #define THREAD_NUM 5 macro
42 pthread_t threads[THREAD_NUM]; in main()
49 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); in main()
50 for (i = 0; i < THREAD_NUM; ++i) in main()
54 for (i = 0; i < THREAD_NUM; ++i) in main()
60 if (value != (THREAD_NUM) * LOOPS) { in main()
62 THREAD_NUM, LOOPS); in main()
64 (THREAD_NUM) * LOOPS, value); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D2-2.c24 #define THREAD_NUM 3 macro
25 #define TIMEOUT (THREAD_NUM * 2)
90 pthread_t thread[THREAD_NUM]; in main()
101 for (i = 0; i < THREAD_NUM; i++) { in main()
107 while (start_num < THREAD_NUM) in main()
128 if (waken_num < THREAD_NUM) { in main()
130 for (i = 0; i < THREAD_NUM; i++) in main()
138 for (i = 0; i < THREAD_NUM; i++) in main()
D1-1.c21 #define THREAD_NUM 3 macro
68 pthread_t thread[THREAD_NUM]; in main()
79 for (i = 0; i < THREAD_NUM; i++) { in main()
86 while (start_num < THREAD_NUM) in main()
111 if (waken_num < THREAD_NUM) { in main()
114 for (i = 0; i < THREAD_NUM; i++) in main()
122 for (i = 0; i < THREAD_NUM; i++) { in main()
D4-1.c21 #define THREAD_NUM 5 macro
66 pthread_t thread[THREAD_NUM]; in main()
77 for (i = 0; i < THREAD_NUM; i++) { in main()
83 while (start_num < THREAD_NUM) in main()
115 if (waken_num < THREAD_NUM) { in main()
117 for (i = 0; i < THREAD_NUM; i++) in main()
125 for (i = 0; i < THREAD_NUM; i++) { in main()
D2-1.c22 #define THREAD_NUM 3 macro
77 pthread_t thread[THREAD_NUM]; in main()
88 for (i = 0; i < THREAD_NUM; i++) { in main()
94 while (start_num < THREAD_NUM) in main()
117 if (waken_num < THREAD_NUM) { in main()
119 for (i = 0; i < THREAD_NUM; i++) in main()
127 for (i = 0; i < THREAD_NUM; i++) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D1-1.c22 #define THREAD_NUM 3 macro
29 pthread_t thread[THREAD_NUM];
39 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler()
95 for (i = 0; i < THREAD_NUM; i++) { /* create THREAD_NUM threads */ in main()
101 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main()
128 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in main()
143 for (i = 1; i < THREAD_NUM; i++) { in main()
155 for (i = 0; i < THREAD_NUM; i++) { in main()
D4-1.c22 #define THREAD_NUM 5 macro
29 pthread_t thread[THREAD_NUM];
39 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler()
91 for (i = 0; i < THREAD_NUM; i++) { in main()
97 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main()
107 while (waken_num < THREAD_NUM) { /* loop to wake up all waiter threads */ in main()
121 for (i = 0; i < THREAD_NUM; i++) { in main()
D2-1.c23 #define THREAD_NUM 3 macro
30 pthread_t thread[THREAD_NUM];
40 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler()
122 for (i = 0; i < THREAD_NUM; i++) { in main()
128 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main()
140 while (waken_num < THREAD_NUM) { /* waiting for all threads wakened */ in main()
150 for (i = 0; i < THREAD_NUM; i++) { in main()
D2-2.c24 #define THREAD_NUM 3 macro
25 #define TIMEOUT THREAD_NUM * 2
100 pthread_t thread[THREAD_NUM]; in main()
121 for (i = 0; i < THREAD_NUM; i++) { in main()
127 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main()
132 while (waken_num < THREAD_NUM) { /* waiting for all threads wakened */ in main()
142 for (i = 0; i < THREAD_NUM; i++) { in main()
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs0529 THREAD_NUM=${THREAD_NUM:-"8"}
38 tst_resm TINFO "start nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM"
39 ROD nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM
Dnfs0332 THREAD_NUM=${THREAD_NUM:-"1"}
106 tst_resm TINFO "Setting server side nfsd count to $THREAD_NUM"
108 tst_rhost_run -s -c "rpc.nfsd $THREAD_NUM"