/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/ |
D | 2-1.c | 32 #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()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
D | 1-1.c | 29 #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()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/ |
D | 2-1.c | 34 #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()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
D | 2-2.c | 23 #define THREAD_NUM 3 macro 24 #define TIMEOUT (THREAD_NUM * 2) 89 pthread_t thread[THREAD_NUM]; in main() 100 for (i = 0; i < THREAD_NUM; i++) { in main() 106 while (start_num < THREAD_NUM) in main() 127 if (waken_num < THREAD_NUM) { in main() 129 for (i = 0; i < THREAD_NUM; i++) in main() 137 for (i = 0; i < THREAD_NUM; i++) in main()
|
D | 1-1.c | 20 #define THREAD_NUM 3 macro 67 pthread_t thread[THREAD_NUM]; in main() 78 for (i = 0; i < THREAD_NUM; i++) { in main() 85 while (start_num < THREAD_NUM) in main() 110 if (waken_num < THREAD_NUM) { in main() 113 for (i = 0; i < THREAD_NUM; i++) in main() 121 for (i = 0; i < THREAD_NUM; i++) { in main()
|
D | 4-1.c | 20 #define THREAD_NUM 5 macro 65 pthread_t thread[THREAD_NUM]; in main() 76 for (i = 0; i < THREAD_NUM; i++) { in main() 82 while (start_num < THREAD_NUM) in main() 114 if (waken_num < THREAD_NUM) { in main() 116 for (i = 0; i < THREAD_NUM; i++) in main() 124 for (i = 0; i < THREAD_NUM; i++) { in main()
|
D | 2-1.c | 21 #define THREAD_NUM 3 macro 76 pthread_t thread[THREAD_NUM]; in main() 87 for (i = 0; i < THREAD_NUM; i++) { in main() 93 while (start_num < THREAD_NUM) in main() 116 if (waken_num < THREAD_NUM) { in main() 118 for (i = 0; i < THREAD_NUM; i++) in main() 126 for (i = 0; i < THREAD_NUM; i++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
D | 1-1.c | 21 #define THREAD_NUM 3 macro 28 pthread_t thread[THREAD_NUM]; 38 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler() 94 for (i = 0; i < THREAD_NUM; i++) { /* create THREAD_NUM threads */ in main() 100 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main() 127 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in main() 142 for (i = 1; i < THREAD_NUM; i++) { in main() 154 for (i = 0; i < THREAD_NUM; i++) { in main()
|
D | 4-1.c | 21 #define THREAD_NUM 5 macro 28 pthread_t thread[THREAD_NUM]; 38 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler() 90 for (i = 0; i < THREAD_NUM; i++) { in main() 96 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main() 106 while (waken_num < THREAD_NUM) { /* loop to wake up all waiter threads */ in main() 120 for (i = 0; i < THREAD_NUM; i++) { in main()
|
D | 2-1.c | 22 #define THREAD_NUM 3 macro 29 pthread_t thread[THREAD_NUM]; 39 for (i = 0; i < THREAD_NUM; i++) { /* cancel threads */ in alarm_handler() 121 for (i = 0; i < THREAD_NUM; i++) { in main() 127 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main() 139 while (waken_num < THREAD_NUM) { /* waiting for all threads wakened */ in main() 149 for (i = 0; i < THREAD_NUM; i++) { in main()
|
D | 2-2.c | 23 #define THREAD_NUM 3 macro 24 #define TIMEOUT THREAD_NUM * 2 99 pthread_t thread[THREAD_NUM]; in main() 120 for (i = 0; i < THREAD_NUM; i++) { in main() 126 while (start_num < THREAD_NUM) /* waiting for all threads started */ in main() 131 while (waken_num < THREAD_NUM) { /* waiting for all threads wakened */ in main() 141 for (i = 0; i < THREAD_NUM; i++) { in main()
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs05 | 13 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
|
D | nfs03 | 15 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"
|
D | nfs06 | 15 THREAD_NUM=${THREAD_NUM:-"2"} 30 fsstress -l 1 -d $TST_TMPDIR/$i/$n -n 1000 -p $THREAD_NUM -r -c > /dev/null &
|