/external/eigen/Eigen/src/Core/products/ |
Parallelizer.h | 47 /** Must be call first when calling Eigen from multiple threads */ 56 /** \returns the max number of threads reserved for Eigen 65 /** Sets the max number of threads reserved for Eigen 102 // - the max number of threads we can create is greater than 1 106 // compute the maximal number of threads from the size of the product: 111 // compute the maximal number of threads from the total amount of work: 117 // compute the number of threads we are going to use 118 Index threads = std::min<Index>(nbThreads(), pb_max_threads); 123 if((!Condition) || (threads==1) || (omp_get_num_threads()>1)) 127 func.initParallelSession(threads); [all...] |
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
MoreExecutorsDirectExecutorBenchmark.java | 66 Set<Thread> threads = new HashSet<Thread>(); field in class:MoreExecutorsDirectExecutorBenchmark 80 threads.add(thread); 85 for (Thread thread : threads) { 88 threads.clear(); 106 for (Thread thread : threads) {
|
/external/libvpx/libvpx/test/ |
invalid_file_test.cc | 29 int threads; member in struct:__anon24369::DecodeParam 34 return os << "threads: " << dp.threads << " file: " << dp.filename; 65 if (input.threads > 1) { 88 cfg.threads = input.threads;
|
/libcore/ojluni/src/main/java/java/lang/ |
ThreadGroup.java | 34 * A thread group represents a set of threads. In addition, a thread 73 Thread threads[]; field in class:ThreadGroup 178 * Returns the maximum priority of this thread group. Threads that are 238 * Sets the maximum priority of the group. Threads in the thread 331 * Returns an estimate of the number of active threads in this thread 336 * threads may change dynamically while this method traverses internal 338 * system threads. This method is intended primarily for debugging 341 * @return an estimate of the number of active threads in this thread 383 * an array into which to put the list of threads 385 * @return the number of threads put into the arra [all...] |
/external/google-benchmark/test/ |
benchmark_test.cc | 80 BENCHMARK(BM_CalculatePi)->Threads(8); 154 int thread_size = size / state.threads; 165 // do not overlap between threads. 222 assert(st.threads == 1 || st.threads == 2 || st.threads == 3); 225 assert(st.threads == 1 || st.threads == 3 || st.threads == 4); 228 assert(st.threads == 5 || st.threads == 8 || st.threads == 11 | [all...] |
/external/libcxx/utils/google-benchmark/test/ |
benchmark_test.cc | 80 BENCHMARK(BM_CalculatePi)->Threads(8); 154 int thread_size = size / state.threads; 165 // do not overlap between threads. 222 assert(st.threads == 1 || st.threads == 2 || st.threads == 3); 225 assert(st.threads == 1 || st.threads == 3 || st.threads == 4); 228 assert(st.threads == 5 || st.threads == 8 || st.threads == 11 | [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
once_unittest.cc | 211 scoped_ptr<TestThread> threads[4]; local 214 threads[i].reset(RunInitOnceInNewThread()); 217 threads[i]->Join(); 228 scoped_ptr<TestThread> threads[8]; local 233 threads[i].reset(RunInitOnceInNewThread()); 236 threads[i].reset(RunInitRecursiveOnceInNewThread()); 248 threads[i]->Join();
|
/external/clang/test/OpenMP/ |
ordered_messages.cpp | 30 #pragma omp ordered threads threads // expected-error {{directive '#pragma omp ordered' cannot contain more than one 'threads' clause}} 44 #pragma omp ordered threads // expected-error {{'ordered' directive with 'threads' clause cannot be closely nested inside ordered region with specified parameter}} 62 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd region}} 76 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd region}} 90 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd region}} 118 #pragma omp ordered depend(source) threads // expected-error {{'depend' clauses cannot be mixed with 'threads' clause} [all...] |
/system/core/libmemunreachable/tests/ |
ThreadCapture_test.cpp | 54 void StartThreads(unsigned int threads, Function&& func) { 55 threads_.reserve(threads); 56 tids_.reserve(threads); 57 for (unsigned int i = 0; i < threads; i++) { 58 threads_.emplace_back([&, i, threads, this]() { 62 if (tids_.size() == threads) { 78 cv_start_.wait(lk, [&]{ return tids_.size() == threads; }); 144 const unsigned int threads = GetParam() - 1; local 146 StartThreads(threads, [](){}); 212 const unsigned int threads = GetParam() local [all...] |
/system/extras/verity/fec/ |
image.cpp | 355 int threads = ctx->threads; local 357 if (threads < IMAGE_MIN_THREADS) { 358 threads = sysconf(_SC_NPROCESSORS_ONLN); 360 if (threads < IMAGE_MIN_THREADS) { 361 threads = IMAGE_MIN_THREADS; 367 if ((uint64_t)threads > ctx->rounds) { 368 threads = (int)ctx->rounds; 370 if (threads > IMAGE_MAX_THREADS) { 371 threads = IMAGE_MAX_THREADS [all...] |
/art/test/925-threadgroups/src/art/ |
Test925.java | 70 Thread[] threads = (Thread[])data[0]; local 73 List<Thread> threadList = new ArrayList<>(Arrays.asList(threads)); 101 Thread[] threads = (Thread[])data[0]; local 102 if (threads.length == expectedChildCount) { 109 Thread[] threads = (Thread[])data[0]; local 110 System.out.println(Arrays.toString(threads)); 128 // Returns an array where element 0 is an array of threads and element 1 is an array of groups.
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
stress.c | 20 * -> when the threads are joinable, pthread_join always retrieve the 22 * -> pthread_exit() frees all the resources used by the threads. 152 pthread_t threads[NSCENAR * SCALABILITY_FACTOR * FACTOR]; local 176 /* Create all the threads */ 179 /* Skip the alternative stack threads */ 184 pthread_create(&threads[i * NSCENAR + sc], 186 &threads[i * NSCENAR + sc]); 234 /* Join all the joinable threads and check the value */ 241 pthread_join(threads 250 (void *)&threads[i * NSCENAR [all...] |
/external/ImageMagick/MagickCore/ |
thread-private.h | 131 static inline void SetOpenMPMaximumThreads(const int threads) 134 omp_set_num_threads(threads); 136 (void) threads;
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/ |
ThreadGroupTest.java | 51 * debuggee threads by VirtualMachine.AllThreads command and looks for tested thread. 62 logWriter.println("get all threads"); 64 int threads = reply.getNextValueAsInt(); local 65 logWriter.println("exercise threads = " + threads); 71 for (int 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...] |
/external/stressapptest/src/ |
findmask.c | 129 pthread_t threads[NUM_THREADS]; local 134 pthread_create(&threads[i], 0, thread_func, (void*)i); 137 pthread_join(threads[i], 0);
|
/prebuilts/misc/windows/sdl2/test/ |
testlock.c | 27 static SDL_Thread *threads[6]; variable 61 SDL_WaitThread(threads[i], NULL); 84 /* If this sleep isn't done, then threads may starve */ 121 if ((threads[i] = SDL_CreateThread(Run, name, NULL)) == NULL)
|
testsem.c | 82 SDL_Thread *threads[NUM_THREADS]; local 105 SDL_Log("Running %d threads, semaphore value = %d\n", NUM_THREADS, 107 /* Create all the threads */ 111 threads[i] = SDL_CreateThread(ThreadFunc, name, (void *) i); 117 /* Wait for all threads to finish */ 118 SDL_Log("Waiting for threads to finish\n"); 121 SDL_WaitThread(threads[i], NULL); 123 SDL_Log("Finished waiting for threads\n");
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/ |
test_exception_storage.pass.cpp | 44 pthread_t threads [ NUMTHREADS ]; variable 64 // Make the threads, let them run, and wait for them to finish 66 pthread_create( threads + i, NULL, thread_code, (void *) (thread_globals + i)); 68 pthread_join ( threads [ i ], NULL );
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++abi/test/ |
test_exception_storage.pass.cpp | 44 pthread_t threads [ NUMTHREADS ]; variable 64 // Make the threads, let them run, and wait for them to finish 66 pthread_create( threads + i, NULL, thread_code, (void *) (thread_globals + i)); 68 pthread_join ( threads [ i ], NULL );
|
/art/test/925-threadgroups/ |
threadgroups.cc | 35 // // Returns an array where element 0 is an array of threads and element 1 is an array of groups. 92 jthread* threads; local 98 &threads, 107 // Threads. 109 return threads[index]; 122 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(threads));
|
/cts/suite/audio_quality/test/ |
AudioPlaybackLocalTest.cpp | 19 #include <utils/threads.h>
|
AudioRecordingLocalTest.cpp | 19 #include <utils/threads.h>
|
/development/ndk/platforms/android-9/include/linux/ |
kernel_stat.h | 17 #include <linux/threads.h>
|
/device/asus/fugu/libaudio/ |
AudioHotplugThread.h | 21 #include <utils/threads.h>
|