/external/ltp/lib/newlib_tests/ |
test09.c | 23 #define THREADS 64 42 pthread_t threads[THREADS]; local 44 for (i = 0; i < THREADS; i++) 45 pthread_create(threads+i, NULL, worker, (void *)i); 47 for (i = 0; i < THREADS; i++) { 49 pthread_join(threads[i], NULL); 52 if (atomic == THREADS * ITERATIONS)
|
test08.c | 25 #define THREADS 10 31 pthread_barrier_init(&barrier, NULL, THREADS); 40 /* Avoid subsequent threads to enter the cleanup */ 59 pthread_t threads[THREADS]; local 61 for (i = 0; i < THREADS; i++) 62 pthread_create(threads+i, NULL, worker, (void*)i); 64 for (i = 0; i < THREADS; i++) { 66 pthread_join(threads[i], NULL);
|
/external/mesa3d/src/mapi/mapi/ |
u_current.c | 115 #ifdef THREADS 119 #endif /* THREADS */ 128 #if defined(THREADS) && defined(WIN32) 135 #if defined(THREADS) && !defined(GLX_USE_TLS) 151 * in order to test if multiple threads are being used. 200 #elif defined(THREADS) 218 #elif defined(THREADS) 244 #elif defined(THREADS) 260 #elif defined(THREADS)
|
u_thread.h | 50 #include <pthread.h> /* POSIX threads headers */ 57 #ifndef THREADS 58 #define THREADS 83 * POSIX threads. This should be your choice in the Unix world 84 * whenever possible. When building with POSIX threads, be sure 152 * Windows threads. Should work with Windows NT and 95. 153 * IMPORTANT: Link with multithreaded runtime library when THREADS are 232 * THREADS not defined 234 #ifndef THREADS 280 #endif /* THREADS */ [all...] |
/external/valgrind/drd/tests/ |
annotate_sem.c | 16 #define THREADS 10 79 pthread_t tid[THREADS]; 83 for (i = 0; i < THREADS; i++) 86 for (i = 0; i < THREADS; i++) 89 assert(s_counter == THREADS * ITERATIONS);
|
circular_buffer.c | 180 #define THREADS (10) 184 pthread_t producers[THREADS]; 185 pthread_t consumers[THREADS]; 186 int thread_arg[THREADS]; 207 for (i = 0; i < THREADS; ++i) 214 for (i = 0; i < THREADS; ++i) 218 for (i = 0; i < THREADS; ++i)
|
/external/linux-kselftest/tools/testing/selftests/powerpc/dscr/ |
dscr_default_test.c | 5 * it's sysfs interface and then verifies that all threads 19 static unsigned long result[THREADS]; 65 pthread_t threads[THREADS]; local 66 unsigned long i, *status[THREADS]; 75 /* Spawn all testing threads */ 76 for (i = 0; i < THREADS; i++) { 77 if (pthread_create(&threads[i], NULL, do_test, (void *)i)) { 105 for (i = 0; i < THREADS; i++) { 106 if (pthread_join(threads[i], (void **)&(status[i]))) [all...] |
dscr.h | 33 #define THREADS 100 /* Max threads */
|
/external/eigen/bench/tensors/ |
tensor_benchmarks_cpu.cc | 7 #define CREATE_THREAD_POOL(threads) \ 8 Eigen::ThreadPool pool(threads); \ 9 Eigen::ThreadPoolDevice device(&pool, threads); 12 #define BM_FuncCPU(FUNC, THREADS) \ 13 static void BM_##FUNC##_##THREADS##T(int iters, int N) { \ 15 CREATE_THREAD_POOL(THREADS); \ 19 BENCHMARK_RANGE(BM_##FUNC##_##THREADS##T, 10, 5000); 83 #define BM_FuncWithInputDimsCPU(FUNC, D1, D2, D3, THREADS) \ 84 static void BM_##FUNC##_##D1##x##D2##x##D3##_##THREADS##T(int iters, int N) { \ 86 if (THREADS == 1) { [all...] |
/dalvik/dx/tests/131-perf/ |
run | 34 THREADS="--num-threads=5" 45 # Limit HW threads 79 $TASKSET dx -JXmx$MEM -JXms$MEM $GC --dex $EXTRA --no-optimize $MULTIDEX $THREADS --output=out x.jar || exit 1
|
/external/mesa3d/src/mapi/glapi/ |
glapi_priv.h | 89 # elif defined(THREADS)
|
glapi.h | 105 # ifdef THREADS
|
/external/ltp/utils/sctp/func_tests/ |
test_1_to_1_threads.c | 5 * This file does send and receive for 500 threads on a unique association for 6 * THREAD_SND_RCV_LOOPS = 10 many times. To change the number of threads 7 * change the THREADS valuen and loop change the THREAD_SND_RCV_LOOPS. 53 #define THREADS 10 /* FIXME should be 500 instead of 10 */ 139 int pth[THREADS]; 140 pthread_t thread[THREADS]; 173 for (cnt = 0; cnt < THREADS; cnt++) { 183 for (cnt = 0; cnt < THREADS ; cnt++) { 192 tst_resm(TPASS, "send and receive data across multiple threads - "
|
/external/icu/icu4j/perf-tests/ |
dateformatperf.pl | 37 my $THREADS; # number of threads (input from command-line args) 53 # run all tests with the specified number of threads from command-line input 54 # (if there is no arguments, use $THREADS = 1) 56 $THREADS = $arg; 65 my $threads = ($THREADS > 1) ? "($THREADS threads)" : ""; 66 my $title = "ICU4J Performance Test $threads $date" [all...] |
decimalformatperf.pl | 33 my $THREADS; # number of threads (input from command-line args) 49 # run all tests with the specified number of threads from command-line input 50 # (if there is no arguments, use $THREADS = 1) 52 $THREADS = $arg; 61 my $threads = ($THREADS > 1) ? "($THREADS threads)" : ""; 62 my $title = "ICU4J Performance Test $threads $date" [all...] |
perftests.pl | 42 my $THREADS; # number of threads (input from command-line args) 57 # run all tests with the specified number of threads from command-line input 58 # (if there is no arguments, use $THREADS = 1) 60 $THREADS = $arg; 70 #my $threads = ($THREADS > 1) ? "($THREADS threads)" : ""; 385 my $cmd = "java -classpath $CLASSPATH $testclass $method $n -p $passes -L @$pat[0] \"@$pat[1]\" \"@$pat[2]\" -r $THREADS"; [all...] |
/external/swiftshader/third_party/LLVM/ |
build-for-llvm-top.sh | 49 if test "$THREADS" -eq 1 ; then 50 config_options="$config_options --enable-threads" 52 config_options="$config_options --disable-threads"
|
/external/curl/tests/libtest/ |
lib586.c | 25 #define THREADS 2 186 for(i=1; i<=THREADS; i++) {
|
lib506.c | 27 #define THREADS 2 262 for(i=1; i<=THREADS; i++) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
PhaserTest.java | 309 List<Thread> threads = new ArrayList<Thread>(); local 312 threads.add(newStartedThread(new CheckedRunnable() { 318 for (Thread thread : threads) 627 List<Thread> threads = new ArrayList<Thread>(); 629 threads.add(newStartedThread(new CheckedRunnable() { 639 for (Thread thread : threads) 651 List<Thread> threads = new ArrayList<Thread>(); 655 threads.add(newStartedThread(new CheckedRunnable() { 670 for (Thread thread : threads) 727 final List<Thread> threads = new ArrayList<Thread>() [all...] |
ScheduledExecutorSubclassTest.java | 455 * multiple threads active 458 final int THREADS = 3; 460 final ThreadPoolExecutor p = new CustomExecutor(THREADS); 462 final CountDownLatch threadsStarted = new CountDownLatch(THREADS); 464 for (int i = 0; i < THREADS; i++) 469 assertEquals(THREADS, p.getLargestPoolSize()); 472 assertEquals(THREADS, p.getLargestPoolSize()); 474 assertEquals(THREADS, p.getLargestPoolSize()); 478 * getPoolSize increases, but doesn't overestimate, when threads [all...] |
/external/libxml2/os400/dlfcn/ |
dlfcn.c | 64 #define THREADS 000002 /* Multithreaded job. */ 120 if (dlflags & THREADS) 151 dlflags &= ~THREADS; 154 dlflags |= THREADS; 160 if (dlflags & THREADS) 206 if (!(dlflags & THREADS)) 234 if (!(dlflags & THREADS))
|
/external/libvpx/libvpx/test/ |
decode_perf_test.cc | 29 #define THREADS 1 35 DecodePerfTest takes a tuple of filename + number of threads to decode with 76 const unsigned threads = GET_PARAM(THREADS); local 82 cfg.threads = threads; 101 printf("\t\"threadCount\" : %u,\n", threads); 225 const uint32_t threads = 4; local 231 cfg.threads = threads; [all...] |
/external/toybox/toys/other/ |
bzcat.c | 44 #define THREADS 1 105 struct bwdata bwdata[THREADS]; 634 bd->dbufSize = 100000*(i-'0')*THREADS; 635 for (i=0; i<THREADS; i++) 658 for (j=0; j<THREADS; j++) free(bd->bwdata[j].dbuf);
|
/external/mesa3d/src/glx/ |
glxcurrent.c | 147 #elif defined( THREADS )
|