Home
last modified time | relevance | path

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

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/
D2-1.c34 #define THREAD_NUM 5 macro
70 pthread_t child_threads[THREAD_NUM]; in main()
74 printf("Initialize barrier with count = %d\n", THREAD_NUM); in main()
75 if (pthread_barrier_init(&barrier, NULL, THREAD_NUM) != 0) { in main()
85 printf("main: create %d child threads\n", THREAD_NUM); in main()
86 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main()
96 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main()
104 if (serial != 1 || (serial + normal_rt) != THREAD_NUM) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/
D2-1.c32 #define THREAD_NUM 6 macro
43 pthread_t threads[THREAD_NUM]; in main()
46 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); in main()
47 for (i = 0; i < THREAD_NUM; ++i) in main()
51 for (i = 0; i < THREAD_NUM; ++i) in main()
56 if (value != (THREAD_NUM) * LOOPS) { in main()
58 THREAD_NUM, LOOPS); in main()
60 (THREAD_NUM) * LOOPS, value); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
D1-1.c29 #define THREAD_NUM 5 macro
41 pthread_t threads[THREAD_NUM]; in main()
48 fprintf(stderr, "Creating %d threads\n", THREAD_NUM); in main()
49 for (i = 0; i < THREAD_NUM; ++i) in main()
53 for (i = 0; i < THREAD_NUM; ++i) in main()
59 if (value != (THREAD_NUM) * LOOPS) { in main()
61 THREAD_NUM, LOOPS); in main()
63 (THREAD_NUM) * LOOPS, value); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D2-2.c23 #define THREAD_NUM 3 macro
24 #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()
D4-1.c20 #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.c21 #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()
D1-1.c20 #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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D1-1.c21 #define THREAD_NUM 3 macro
28 static pthread_t thread[THREAD_NUM];
38 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.c21 #define THREAD_NUM 5 macro
28 static pthread_t thread[THREAD_NUM];
38 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-2.c23 #define THREAD_NUM 3 macro
24 #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()
D2-1.c22 #define THREAD_NUM 3 macro
29 static pthread_t thread[THREAD_NUM];
39 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()
/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs05.sh13 THREAD_NUM=${THREAD_NUM:-"8"}
21 tst_res TINFO "start nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM"
22 ROD nfs05_make_tree -d $DIR_NUM -f $FILE_NUM -t $THREAD_NUM
Dnfs03.sh15 THREAD_NUM=${THREAD_NUM:-"1"}
84 tst_res TINFO "Setting server side nfsd count to $THREAD_NUM"
86 tst_rhost_run -s -c "rpc.nfsd $THREAD_NUM"
Dnfs06.sh15 THREAD_NUM=${THREAD_NUM:-"2"}
30 fsstress -l 1 -d $TST_TMPDIR/$i/$n -n 1000 -p $THREAD_NUM -r -c > /dev/null &