/external/valgrind/drd/tests/ |
D | pth_create_chain.c | 17 int thread_count = *(int*)(p); in thread_func() local 20 if (thread_count > 0) in thread_func() 22 thread_count--; in thread_func() 24 s_arg[thread_count] = thread_count; in thread_func() 27 pthread_create(&s_thread[thread_count], &attr, thread_func, in thread_func() 28 &s_arg[thread_count]); in thread_func() 31 std::cout << "created " << thread_count << "(" << s_thread[thread_count] in thread_func() 41 unsigned thread_count; in main() local 44 thread_count = argc > 1 ? atoi(argv[1]) : 50; in main() 45 assert(thread_count <= sizeof(s_thread) / sizeof(s_thread[0])); in main() [all …]
|
D | pth_broadcast.c | 114 int thread_count; in main() local 134 thread_count = argc > optind + 1 ? atoi(argv[optind + 1]) : 10; in main() 148 thread_vec = malloc(sizeof(struct cthread) * thread_count); in main() 149 for (p = thread_vec; p != thread_vec + thread_count; p++) in main() 161 csema_p(&sema, thread_count); in main() 170 for (i = 0; i < thread_count; i++) in main()
|
D | pth_barrier_thr_cr.c | 30 int thread_count = barriers * barrier_participants; in main() local 37 tid = malloc(thread_count * sizeof(*tid)); in main() 39 for (i = 0; i < thread_count; i++) { in main() 43 for (i = 0; i < thread_count; i++) { in main()
|
D | annotate_rwlock.c | 143 const int thread_count = 10; in main() local 144 pthread_t tid[thread_count]; in main() 148 for (i = 0; i < thread_count; i++) in main() 153 for (i = 0; i < thread_count; i++) in main()
|
D | annotate_barrier.c | 30 unsigned thread_count; member 59 b->thread_count = count; in barrier_init() 79 if (__sync_add_and_fetch(&b->wait_count, 1) == b->thread_count) in barrier_wait() 81 __sync_sub_and_fetch(&b->wait_count, b->thread_count); in barrier_wait()
|
/external/v8/src/base/platform/ |
D | condition-variable-unittest.cc | 223 LoopIncrementThread(int rem, int* counter, int limit, int thread_count, in LoopIncrementThread() argument 229 thread_count_(thread_count), in LoopIncrementThread() 232 EXPECT_LT(rem, thread_count); in LoopIncrementThread() 233 EXPECT_EQ(0, limit % thread_count); in LoopIncrementThread() 273 for (int thread_count = 1; thread_count < kMaxThreadCount; ++thread_count) { in TEST() local 274 int limit = thread_count * 10; in TEST() 278 Thread** threads = new Thread* [thread_count]; in TEST() 279 for (int n = 0; n < thread_count; ++n) { in TEST() 280 threads[n] = new LoopIncrementThread(n, &counter, limit, thread_count, in TEST() 285 for (int n = thread_count - 1; n >= 0; --n) { in TEST() [all …]
|
/external/valgrind/helgrind/tests/ |
D | annotate_rwlock.c | 157 const int thread_count = 10; in main() local 158 pthread_t tid[thread_count]; in main() 162 for (i = 0; i < thread_count; i++) in main() 167 for (i = 0; i < thread_count; i++) in main()
|
/external/lldb/source/Plugins/Process/POSIX/ |
D | ProcessPOSIX.cpp | 275 uint32_t thread_count = m_thread_list.GetSize(false); in DoResume() local 276 for (uint32_t i = 0; i < thread_count; ++i) in DoResume() 335 uint32_t thread_count = m_thread_list.GetSize(false); in DoDetach() local 336 for (uint32_t i = 0; i < thread_count; ++i) in DoDetach() 702 uint32_t thread_count = m_thread_list.GetSize(false); in EnableWatchpoint() local 703 for (uint32_t i = 0; i < thread_count; ++i) in EnableWatchpoint() 758 uint32_t thread_count = m_thread_list.GetSize(false); in DisableWatchpoint() local 759 for (uint32_t i = 0; i < thread_count; ++i) in DisableWatchpoint() 904 uint32_t thread_count = m_thread_list.GetSize(false); in IsAThreadRunning() local 905 for (uint32_t i = 0; i < thread_count; ++i) in IsAThreadRunning()
|
/external/lldb/tools/darwin-threads/ |
D | examine-threads.c | 385 mach_msg_type_number_t thread_count; in main() local 387 kr = task_threads (task, &thread_list, &thread_count); in main() 393 printf ("pid %d has %d threads\n", pid, thread_count); in main() 397 for (i = 0; i < thread_count; i++) in main() 469 thread_count * sizeof (thread_act_t)); in main()
|
/external/lldb/source/Plugins/Process/Linux/ |
D | ProcessLinux.cpp | 158 uint32_t thread_count = m_thread_list.GetSize(false); in StopAllThreads() local 159 for (uint32_t i = 0; i < thread_count; ++i) in StopAllThreads()
|
/external/google-breakpad/src/client/mac/handler/ |
D | exception_handler.cc | 821 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/protobuf/gtest/src/ |
D | gtest-death-test.cc | 170 static String DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument 174 if (thread_count == 0) in DeathTestThreadWarning() 177 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning() 739 const size_t thread_count = GetThreadCount(); in AssumeRole() local 740 if (thread_count != 1) { in AssumeRole() 741 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
|
D | gtest-port.cc | 84 mach_msg_type_number_t thread_count; in GetThreadCount() local 86 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount() 92 sizeof(thread_t) * thread_count); in GetThreadCount() 93 return static_cast<size_t>(thread_count); in GetThreadCount()
|
/external/google-breakpad/src/client/mac/tests/ |
D | minidump_generator_test.cc | 122 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/google-breakpad/src/processor/ |
D | minidump.cc | 1561 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/llvm/utils/unittest/googletest/src/ |
D | gtest-death-test.cc | 179 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()
|
D | gtest-port.cc | 86 mach_msg_type_number_t thread_count; in GetThreadCount() local 88 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount() 94 sizeof(thread_t) * thread_count); in GetThreadCount() 95 return static_cast<size_t>(thread_count); in GetThreadCount()
|
/external/mesa3d/src/gtest/src/ |
D | gtest-death-test.cc | 179 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() 787 const size_t thread_count = GetThreadCount(); in AssumeRole() local 788 if (thread_count != 1) { in AssumeRole() 789 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
|
D | gtest-port.cc | 86 mach_msg_type_number_t thread_count; in GetThreadCount() local 88 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount() 94 sizeof(thread_t) * thread_count); in GetThreadCount() 95 return static_cast<size_t>(thread_count); in GetThreadCount()
|
/external/google-breakpad/src/testing/gtest/src/ |
D | gtest-port.cc | 91 mach_msg_type_number_t thread_count; in GetThreadCount() local 93 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount() 99 sizeof(thread_t) * thread_count); in GetThreadCount() 100 return static_cast<size_t>(thread_count); in GetThreadCount()
|
D | gtest-death-test.cc | 217 static String DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument 221 if (thread_count == 0) in DeathTestThreadWarning() 224 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning() 825 const size_t thread_count = GetThreadCount(); in AssumeRole() local 826 if (thread_count != 1) { in AssumeRole() 827 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
|
/external/gtest/src/ |
D | gtest-death-test.cc | 217 static std::string DeathTestThreadWarning(size_t thread_count) { in DeathTestThreadWarning() argument 221 if (thread_count == 0) in DeathTestThreadWarning() 224 msg << "detected " << thread_count << " threads."; in DeathTestThreadWarning() 823 const size_t thread_count = GetThreadCount(); in AssumeRole() local 824 if (thread_count != 1) { in AssumeRole() 825 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count); in AssumeRole()
|
D | gtest-port.cc | 92 mach_msg_type_number_t thread_count; in GetThreadCount() local 94 const kern_return_t status = task_threads(task, &thread_list, &thread_count); in GetThreadCount() 100 sizeof(thread_t) * thread_count); in GetThreadCount() 101 return static_cast<size_t>(thread_count); in GetThreadCount()
|
/external/opencv/cv/src/ |
D | cvdistransform.cpp | 456 int thread_count = cvGetNumThreads(); in icvTrueDistTrans() local 472 pass1_sz = src->rows*(5 + thread_count) + 1; in icvTrueDistTrans() 475 pass2_sz = src->cols*(2 + thread_count*3) + thread_count; in icvTrueDistTrans() 497 #pragma omp parallel for num_threads(thread_count) in icvTrueDistTrans() 535 #pragma omp parallel for num_threads(thread_count) schedule(dynamic) in icvTrueDistTrans()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_stoptheworld.h | 36 uptr thread_count() const { return thread_ids_.size(); } in thread_count() function
|