Home
last modified time | relevance | path

Searched refs:thread_count (Results 1 – 25 of 70) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/timers/
Dthreadtest.c122 int thread_count, i; in main() local
131 thread_count = DEFAULT_THREAD_COUNT; in main()
141 thread_count = atoi(optarg); in main()
156 if (thread_count > MAX_THREADS) in main()
157 thread_count = MAX_THREADS; in main()
165 printf("Testing consistency with %i threads for %ld seconds: ", thread_count, runtime); in main()
168 for (i = 0; i < thread_count; i++) in main()
185 for (i = 0; i < thread_count; i++) in main()
/external/grpc-grpc/test/core/gpr/
Dspinlock_test.cc37 int thread_count; /* number of threads */ member
50 m->thread_count = threads; in test_new()
55 m->thread_count = 0; in test_new()
70 for (i = 0; i != m->thread_count; i++) { in test_create_threads()
79 for (i = 0; i != m->thread_count; i++) { in test_wait()
108 if (m->counter != m->thread_count * m->iterations * m->incr_step) { in test()
110 static_cast<long>(m->counter), m->thread_count, in test()
/external/gemmlowp/internal/
Dmulti_thread_gemm.h573 int thread_count = std::min(max_count, CeilQuotient(rows, MinRowsPerThread)); in HowManyThreads() local
579 if (thread_count > 1) { in HowManyThreads()
587 thread_count = in HowManyThreads()
588 std::min(thread_count, int(cubic_size / min_cubic_size_per_thread)); in HowManyThreads()
590 if (thread_count < 1) { in HowManyThreads()
591 thread_count = 1; in HowManyThreads()
595 assert(thread_count > 0 && thread_count <= max_count); in HowManyThreads()
596 return thread_count; in HowManyThreads()
630 const int thread_count = HowManyThreads<KernelFormat::kRows>( in MultiThreadGemm() local
632 if (thread_count == 1) { in MultiThreadGemm()
[all …]
/external/python/cpython2/Lib/test/
Dtest_dummy_thread.py151 thread_count = 5
152 testing_queue = Queue.Queue(thread_count)
156 "(will take approx. %s to %s sec.) ***" % (DELAY, thread_count)
157 for count in xrange(thread_count):
167 self.assertEqual(testing_queue.qsize(), thread_count,
169 (thread_count, DELAY))
/external/compiler-rt/test/tsan/
Ddebugging.cc16 int *mutex_count, int *thread_count,
57 int stack_count, mop_count, loc_count, mutex_count, thread_count, in __tsan_on_report() local
61 &loc_count, &mutex_count, &thread_count, in __tsan_on_report()
90 fprintf(stderr, "thread_count = %d\n", thread_count); in __tsan_on_report()
/external/python/cpython3/Lib/test/
Dtest_dummy_thread.py192 thread_count = 5
193 testing_queue = queue.Queue(thread_count)
199 DELAY, thread_count))
201 for count in range(thread_count):
211 self.assertEqual(testing_queue.qsize(), thread_count,
213 "after %s sec." % (thread_count, DELAY))
/external/libchrome/base/synchronization/
Dcondition_variable_unittest.cc71 explicit WorkQueue(int thread_count);
125 bool ThreadSafeCheckShutdown(int thread_count);
502 WorkQueue::WorkQueue(int thread_count) in WorkQueue() argument
507 thread_count_(thread_count), in WorkQueue()
509 thread_handles_(new PlatformThreadHandle[thread_count]), in WorkQueue()
510 assignment_history_(thread_count), in WorkQueue()
511 completion_history_(thread_count), in WorkQueue()
587 bool WorkQueue::ThreadSafeCheckShutdown(int thread_count) { in ThreadSafeCheckShutdown() argument
593 all_shutdown = (shutdown_task_count_ == thread_count); in ThreadSafeCheckShutdown()
/external/libvpx/libvpx/test/
Dencode_perf_test.cc164 char thread_count[32]; in TEST_P() local
165 snprintf(thread_count, sizeof(thread_count), "_t-%d", in TEST_P()
167 display_name += thread_count; in TEST_P()
/external/libaom/libaom/test/
Dencode_perf_test.cc164 char thread_count[32]; in TEST_P() local
165 snprintf(thread_count, sizeof(thread_count), "_t-%d", in TEST_P()
167 display_name += thread_count; in TEST_P()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtraceme_recorder_test.cc99 std::atomic<int> thread_count = {0}; in TEST() local
101 pool.Schedule([&start, &stop, &thread_count, i] { in TEST()
111 thread_count.fetch_add(1, std::memory_order_relaxed); in TEST()
154 while (thread_count.load(std::memory_order_relaxed) < kNumThreads) { in TEST()
/external/webrtc/webrtc/examples/objc/AppRTCDemo/common/
DARDUtilities.m103 mach_msg_type_number_t thread_count;
104 if (task_threads(task, &thread_array, &thread_count) != KERN_SUCCESS) {
112 for (size_t i = 0; i < thread_count; ++i) {
126 sizeof(thread_act_t) * thread_count);
/external/grpc-grpc/src/core/lib/iomgr/
Dresource_quota.cc833 int thread_count) { in grpc_resource_user_allocate_threads() argument
834 GPR_ASSERT(thread_count >= 0); in grpc_resource_user_allocate_threads()
838 if (rq->num_threads_allocated + thread_count <= rq->max_threads) { in grpc_resource_user_allocate_threads()
839 rq->num_threads_allocated += thread_count; in grpc_resource_user_allocate_threads()
841 thread_count); in grpc_resource_user_allocate_threads()
849 int thread_count) { in grpc_resource_user_free_threads() argument
850 GPR_ASSERT(thread_count >= 0); in grpc_resource_user_free_threads()
853 rq->num_threads_allocated -= thread_count; in grpc_resource_user_free_threads()
855 &resource_user->num_threads_allocated, -thread_count)); in grpc_resource_user_free_threads()
856 if (old_count < thread_count || rq->num_threads_allocated < 0) { in grpc_resource_user_free_threads()
[all …]
Dresource_quota.h100 int thread_count);
110 int thread_count);
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_program.c369 unsigned thread_count; in brw_alloc_stage_scratch() local
372 thread_count = devinfo->max_vs_threads; in brw_alloc_stage_scratch()
375 thread_count = devinfo->max_tcs_threads; in brw_alloc_stage_scratch()
378 thread_count = devinfo->max_tes_threads; in brw_alloc_stage_scratch()
381 thread_count = devinfo->max_gs_threads; in brw_alloc_stage_scratch()
384 thread_count = devinfo->max_wm_threads; in brw_alloc_stage_scratch()
433 thread_count = scratch_ids_per_subslice * subslices; in brw_alloc_stage_scratch()
442 per_thread_size * thread_count, 4096); in brw_alloc_stage_scratch()
/external/python/cpython2/Python/
Dthread_beos.h113 static int32 thread_count = 0; variable
125 this_thread = atomic_add( &thread_count, 1 ); in PyThread_start_new_thread()
154 threads = atomic_add( &thread_count, 0 ); in PyThread_exit_thread()
Dthread_atheos.h97 static atomic_t thread_count = 0; variable
108 this_thread = atomic_add(&thread_count, 1); in PyThread_start_new_thread()
136 if (atomic_add(&thread_count, 0) == 0) { in PyThread_exit_thread()
/external/adeb/bcc/misc/
Dlockstat.py23 self.thread_count = 0
29 self.thread_count += 1
274 stats.contention_count, stats.thread_count,
/external/google-breakpad/src/client/mac/handler/
Dexception_handler.cc821 mach_msg_type_number_t thread_count; in SuspendThreads() local
823 if (task_threads(mach_task_self(), &threads_for_task, &thread_count)) in SuspendThreads()
827 for (unsigned int i = 0; i < thread_count; ++i) { in SuspendThreads()
839 mach_msg_type_number_t thread_count; in ResumeThreads() local
841 if (task_threads(mach_task_self(), &threads_for_task, &thread_count)) in ResumeThreads()
845 for (unsigned int i = 0; i < thread_count; ++i) { in ResumeThreads()
/external/google-breakpad/src/client/mac/tests/
Dminidump_generator_test.cc122 ASSERT_EQ((unsigned int)1, thread_list->thread_count()); in TEST_F()
213 ASSERT_EQ((unsigned int)1, thread_list->thread_count()); in TEST_F()
303 ASSERT_EQ((unsigned int)1, thread_list->thread_count()); in TEST_F()
/external/webrtc/webrtc/libjingle/xmllite/
Dxmlelement_unittest.cc243 int thread_count = 2; // Was 100, but that's too slow. in TEST() local
248 for (int i = 0; i < thread_count; i++) { in TEST()
254 for (int i = 0; i < thread_count; i++) { in TEST()
/external/google-breakpad/src/processor/
Dminidump.cc1561 uint32_t thread_count; in Read() local
1562 if (expected_size < sizeof(thread_count)) { in Read()
1564 expected_size << " < " << sizeof(thread_count); in Read()
1567 if (!minidump_->ReadBytes(&thread_count, sizeof(thread_count))) { in Read()
1573 Swap(&thread_count); in Read()
1575 if (thread_count > numeric_limits<uint32_t>::max() / sizeof(MDRawThread)) { in Read()
1576 BPLOG(ERROR) << "MinidumpThreadList thread count " << thread_count << in Read()
1581 if (expected_size != sizeof(thread_count) + in Read()
1582 thread_count * sizeof(MDRawThread)) { in Read()
1584 if (expected_size == sizeof(thread_count) + 4 + in Read()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc228 static std::string DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument
232 if (thread_count == 0) in DeathTestThreadWarning()
235 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning()
834 const size_t thread_count = GetThreadCount(); in AssumeRole() local
835 if (thread_count != 1) { in AssumeRole()
836 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-death-test.cc228 static std::string DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument
232 if (thread_count == 0) in DeathTestThreadWarning()
235 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning()
834 const size_t thread_count = GetThreadCount(); in AssumeRole() local
835 if (thread_count != 1) { in AssumeRole()
836 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc228 static std::string DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument
232 if (thread_count == 0) in DeathTestThreadWarning()
235 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning()
834 const size_t thread_count = GetThreadCount(); in AssumeRole() local
835 if (thread_count != 1) { in AssumeRole()
836 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
/external/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc179 static String DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument
183 if (thread_count == 0) in DeathTestThreadWarning()
186 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning()
789 const size_t thread_count = GetThreadCount(); in AssumeRole() local
790 if (thread_count != 1) { in AssumeRole()
791 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()

123