/external/ltp/testcases/kernel/fs/openfile/ |
openfile.c | 71 void *threads(void *thread_id); 102 printf("Usage: openfile [-d] -f FILES -t THREADS\n"); 107 printf("Usage: openfile [-d] -f FILES -t THREADS\n"); 122 sprintf(msg, "%s\nCannot use %d threads", msg, numthreads); 123 sprintf(msg, "%s, used %d threads instead\n", msg, MAXTHREADS); 147 printf("Creating Reading Threads\n"); 149 /* Create threads */ 151 if (pthread_create(&th_id, NULL, threads, 160 /* Sleep until all threads are created */ 164 "error while waiting for reading threads"); 206 void *threads(void *thread_id_) function [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
1-6.c | 31 * lower priority does not finish until the high priority threads finished 102 pthread_t threads[n_threads]; local 126 ret = pthread_create(&threads[i], &attr, do_work, NULL); 142 pthread_join(threads[i], NULL); 248 printf("INFO: Affinity not supported, running %i threads.\n",
|
/external/protobuf/gtest/test/ |
gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 62 // How many threads to create? 105 // RecordProperty() should interact safely with other threads as well. 126 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 133 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 139 // Blocks until all the threads are done. 141 threads[i]->Join(); 206 // This statement should succeed, because failures in all threads are 225 // This statement should succeed, because failures in all threads ar [all...] |
/external/python/cpython2/Lib/test/ |
test_capi.py | 65 threads = [] 75 threads = [threading.Thread(target=self.pendingcalls_thread, 78 with support.start_threads(threads): 89 print "finished threads: ", nFinished
|
test_threading.py | 78 # Create a bunch of threads, let each do some work, wait until all are 90 threads = [] 94 threads.append(t) 101 for t in threads: 112 # The ident still must work for the main thread and dummy threads. 445 # threads that vanished after a fork. 469 threads = [threading.Thread(target=bs.acquire) 471 for t in threads: 473 for t in threads: 475 threads = [threading.Thread(target=bs.release [all...] |
/external/python/cpython2/Python/ |
thread_beos.h | 149 int32 threads; local 154 threads = atomic_add( &thread_count, 0 ); 156 if( threads == 0 ) { 157 /* No threads around, so exit main(). */
|
/external/python/cpython2/Tools/ccbench/ |
ccbench.py | 189 # OS scheduling of Python threads is sometimes so bad that we 229 threads = [] 231 threads.append(threading.Thread(target=run)) 232 for t in threads: 236 # so we arrange for timing to start after all threads are ready. 244 for t in threads: 261 print("threads=%d: %d" % (nthreads, speed), end="") 312 threads = [] 335 threads.append(threading.Thread(target=run)) 336 for t in threads [all...] |
/external/python/cpython3/Tools/ccbench/ |
ccbench.py | 187 # OS scheduling of Python threads is sometimes so bad that we 227 threads = [] 229 threads.append(threading.Thread(target=run)) 230 for t in threads: 234 # so we arrange for timing to start after all threads are ready. 242 for t in threads: 259 print("threads=%d: %d" % (nthreads, speed), end="") 313 threads = [] 336 threads.append(threading.Thread(target=run)) 337 for t in threads [all...] |
/external/tensorflow/tensorflow/contrib/model_pruning/examples/cifar10/ |
cifar10_eval.py | 75 threads = [] 77 threads.extend(qr.create_threads(sess, coord=coord, daemon=True, 101 coord.join(threads, stop_grace_period_secs=10)
|
/external/v8/testing/gtest/test/ |
gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 61 // How many threads to create? 104 // RecordProperty() should interact safely with other threads as well. 125 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 132 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 138 // Blocks until all the threads are done. 140 threads[i]->Join(); 205 // This statement should succeed, because failures in all threads are 224 // This statement should succeed, because failures in all threads ar [all...] |
/external/valgrind/callgrind/ |
callgrind_control.in | 375 @threads = (); 384 $threads = ""; 416 elsif (/threads: (.+)$/) { $threads = $1; @threads = split " ", $threads; } 430 print " Number of running threads: " .($#threads+1). ", thread IDs: $threads\n";
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 61 // How many threads to create? 104 // RecordProperty() should interact safely with other threads as well. 125 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 132 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 138 // Blocks until all the threads are done. 140 threads[i]->Join(); 205 // This statement should succeed, because failures in all threads are 224 // This statement should succeed, because failures in all threads ar [all...] |
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/ |
MainActivity.java | 99 ArrayList<Thread> threads = new ArrayList<>(); local 113 threads.add(t); 117 for (Thread t : threads) {
|
/frameworks/wilhelm/tests/sandbox/ |
multithread.c | 17 // Multiple threads create and destroy objects 37 pthread_t threads[MAX_THREAD]; variable 128 // create threads 155 ok = pthread_create(&threads[i], (const pthread_attr_t *) NULL, thread_start, 171 // signal threads that they should exit 183 // now wait for the threads to actually exit 185 ok = pthread_join(threads[i], NULL);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_capi.py | 58 threads = [] 71 threads.append(t) 75 for t in threads: 86 print "finished threads: ", nFinished
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_capi.py | 58 threads = [] 71 threads.append(t) 75 for t in threads: 86 print "finished threads: ", nFinished
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/ |
skip_with_error_test.cc | 76 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) { 87 ADD_CASES("BM_error_during_running", {{"/1/threads:1", true, "error message"}, 88 {"/1/threads:2", true, "error message"}, 89 {"/1/threads:4", true, "error message"}, 90 {"/1/threads:8", true, "error message"}, 91 {"/2/threads:1", false, ""}, 92 {"/2/threads:2", false, ""}, 93 {"/2/threads:4", false, ""}, 94 {"/2/threads:8", false, ""}}); 100 if (state.thread_index <= (state.threads / 2) [all...] |
/prebuilts/ndk/r16/sources/third_party/googletest/googletest/test/ |
gtest_stress_test.cc | 33 // used in a large number of threads concurrently. 61 // How many threads to create? 104 // RecordProperty() should interact safely with other threads as well. 125 // Tests using SCOPED_TRACE() and Google Test assertions in many threads 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; local 132 threads[i].reset(new ThreadWithParam<int>(&ManyAsserts, 138 // Blocks until all the threads are done. 140 threads[i]->Join(); 205 // This statement should succeed, because failures in all threads are 224 // This statement should succeed, because failures in all threads ar [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_capi.py | 58 threads = [] 71 threads.append(t) 75 for t in threads: 86 print "finished threads: ", nFinished
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_capi.py | 58 threads = [] 71 threads.append(t) 75 for t in threads: 86 print "finished threads: ", nFinished
|
/system/core/libsync/ |
sync_test.c | 79 pthread_t threads[4]; local 119 pthread_create(&threads[i], NULL, sync_thread, &sync_data[i]); 143 pthread_join(threads[i], &val);
|
/system/core/libunwindstack/tests/ |
MapInfoGetLoadBiasTest.cpp | 96 std::vector<std::thread*> threads; local 100 // Create all of the threads and have them do the GetLoadBias at the same time 108 threads.push_back(thread); 111 // Set them all going and wait for the threads to finish. 113 for (auto thread : threads) {
|
/system/extras/memory_replay/ |
Threads.cpp | 31 #include "Threads.h" 48 Threads::Threads(Pointers* pointers, size_t max_threads) 56 err(1, "Failed to map in memory for Threads: map size %zu, max threads %zu\n", 68 Threads::~Threads() { 76 Thread* Threads::CreateThread(pid_t tid) { 78 err(1, "Too many threads created, current max %zu.\n", num_threads_); 82 err(1, "No empty entries found, current max %zu, num threads %zu\n" [all...] |
/system/extras/simpleperf/ |
event_selection_set.h | 111 void AddMonitoredThreads(const std::set<pid_t>& threads) { 112 threads_.insert(threads.begin(), threads.end()); 138 // Stop profiling if all monitored processes/threads don't exist.
|
/system/extras/simpleperf/scripts/inferno/ |
data_types.py | 56 self.threads = {} 67 thread = self.threads.get(tid) 69 thread = self.threads[tid] = Thread(tid, pid)
|