Searched refs:thread_count (Results 1 - 25 of 41) sorted by relevance

12

/external/valgrind/main/drd/tests/
H A Dpth_create_chain.c16 int thread_count = *(int*)(p); local
17 if (thread_count > 0)
19 thread_count--;
20 // std::cout << "create " << thread_count << std::endl;
21 s_arg[thread_count] = thread_count;
22 pthread_create(&s_thread[thread_count], 0, thread_func,
23 &s_arg[thread_count]);
25 std::cout << "created " << thread_count << "(" << s_thread[thread_count]
34 unsigned thread_count; local
[all...]
H A Dpth_barrier_thr_cr.c30 int thread_count = barriers * barrier_participants; local
37 tid = malloc(thread_count * sizeof(*tid));
39 for (i = 0; i < thread_count; i++) {
43 for (i = 0; i < thread_count; i++) {
H A Dpth_broadcast.c114 int thread_count; local
134 thread_count = argc > optind + 1 ? atoi(argv[optind + 1]) : 10;
148 thread_vec = malloc(sizeof(struct cthread) * thread_count);
149 for (p = thread_vec; p != thread_vec + thread_count; p++)
161 csema_p(&sema, thread_count);
170 for (i = 0; i < thread_count; i++)
H A Dannotate_barrier.c30 unsigned thread_count; member in struct:__anon28397
59 b->thread_count = count;
79 if (__sync_add_and_fetch(&b->wait_count, 1) == b->thread_count)
81 __sync_sub_and_fetch(&b->wait_count, b->thread_count);
H A Dannotate_rwlock.c143 const int thread_count = 10; local
144 pthread_t tid[thread_count];
148 for (i = 0; i < thread_count; i++)
153 for (i = 0; i < thread_count; i++)
/external/chromium_org/v8/test/cctest/
H A Dtest-condition-variable.cc235 int thread_count,
239 limit_(limit), thread_count_(thread_count), cv_(cv), mutex_(mutex) {
240 CHECK_LT(rem, thread_count);
241 CHECK_EQ(0, limit % thread_count);
279 for (int thread_count = 1; thread_count < kMaxThreadCount; ++thread_count) {
280 int limit = thread_count * 100;
284 Thread** threads = new Thread*[thread_count];
285 for (int n = 0; n < thread_count;
232 LoopIncrementThread(int rem, int* counter, int limit, int thread_count, ConditionVariable* cv, Mutex* mutex) argument
[all...]
/external/valgrind/main/helgrind/tests/
H A Dannotate_rwlock.c157 const int thread_count = 10; local
158 pthread_t tid[thread_count];
162 for (i = 0; i < thread_count; i++)
167 for (i = 0; i < thread_count; i++)
/external/chromium_org/tools/gn/
H A Dscheduler.cc17 std::string thread_count = local
21 if (thread_count.empty() || !base::StringToInt(thread_count, &result))
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld.h36 uptr thread_count() const { return thread_ids_.size(); } function in class:__sanitizer::SuspendedThreadsList
H A Dsanitizer_stoptheworld_linux_libcdep.cc133 for (uptr i = 0; i < suspended_threads_list_.thread_count(); i++) {
150 for (uptr i = 0; i < suspended_threads_list_.thread_count(); i++)
/external/chromium/base/synchronization/
H A Dcondition_variable_unittest.cc64 explicit WorkQueue(int thread_count);
116 // Compares the |shutdown_task_count_| to the |thread_count| and returns true
119 bool ThreadSafeCheckShutdown(int thread_count);
474 WorkQueue::WorkQueue(int thread_count) argument
479 thread_count_(thread_count),
481 thread_handles_(new PlatformThreadHandle[thread_count]),
482 assignment_history_(thread_count),
483 completion_history_(thread_count),
559 bool WorkQueue::ThreadSafeCheckShutdown(int thread_count) { argument
565 all_shutdown = (shutdown_task_count_ == thread_count);
[all...]
/external/chromium_org/base/synchronization/
H A Dcondition_variable_unittest.cc66 explicit WorkQueue(int thread_count);
118 // Compares the |shutdown_task_count_| to the |thread_count| and returns true
121 bool ThreadSafeCheckShutdown(int thread_count);
492 WorkQueue::WorkQueue(int thread_count) argument
497 thread_count_(thread_count),
499 thread_handles_(new PlatformThreadHandle[thread_count]),
500 assignment_history_(thread_count),
501 completion_history_(thread_count),
577 bool WorkQueue::ThreadSafeCheckShutdown(int thread_count) { argument
583 all_shutdown = (shutdown_task_count_ == thread_count);
[all...]
/external/chromium/sdch/open-vcdiff/src/gtest/
H A Dgtest-death-test.cc130 // caller not to pass a thread_count of 1.
131 static String DeathTestThreadWarning(size_t thread_count) { argument
135 if (thread_count == 0)
138 msg << "detected " << thread_count << " threads."; local
453 const size_t thread_count = GetThreadCount(); local
454 if (thread_count != 1) {
455 GTEST_LOG(WARNING, DeathTestThreadWarning(thread_count));
/external/chromium_org/third_party/libjingle/source/talk/xmllite/
H A Dxmlelement_unittest.cc260 int thread_count = 2; // Was 100, but that's too slow. local
265 for (int i = 0; i < thread_count; i++) {
271 for (int i = 0; i < thread_count; i++) {
/external/open-vcdiff/gtest/src/
H A Dgtest-death-test.cc169 // caller not to pass a thread_count of 1.
170 static String DeathTestThreadWarning(size_t thread_count) { argument
174 if (thread_count == 0)
177 msg << "detected " << thread_count << " threads."; local
739 const size_t thread_count = GetThreadCount(); local
740 if (thread_count != 1) {
741 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count);
H A Dgtest-port.cc82 mach_msg_type_number_t thread_count; local
84 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
90 sizeof(thread_t) * thread_count);
91 return static_cast<size_t>(thread_count);
/external/protobuf/gtest/src/
H A Dgtest-death-test.cc169 // caller not to pass a thread_count of 1.
170 static String DeathTestThreadWarning(size_t thread_count) { argument
174 if (thread_count == 0)
177 msg << "detected " << thread_count << " threads."; local
739 const size_t thread_count = GetThreadCount(); local
740 if (thread_count != 1) {
741 GTEST_LOG_(WARNING) << DeathTestThreadWarning(thread_count);
H A Dgtest-port.cc82 mach_msg_type_number_t thread_count; local
84 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
90 sizeof(thread_t) * thread_count);
91 return static_cast<size_t>(thread_count);
/external/chromium/testing/gtest/src/
H A Dgtest-port.cc86 mach_msg_type_number_t thread_count; local
88 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
94 sizeof(thread_t) * thread_count);
95 return static_cast<size_t>(thread_count);
/external/chromium_org/third_party/mesa/src/src/gtest/src/
H A Dgtest-port.cc86 mach_msg_type_number_t thread_count; local
88 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
94 sizeof(thread_t) * thread_count);
95 return static_cast<size_t>(thread_count);
/external/gtest/src/
H A Dgtest-port.cc86 mach_msg_type_number_t thread_count; local
88 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
94 sizeof(thread_t) * thread_count);
95 return static_cast<size_t>(thread_count);
/external/llvm/utils/unittest/googletest/
H A Dgtest-port.cc86 mach_msg_type_number_t thread_count; local
88 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
94 sizeof(thread_t) * thread_count);
95 return static_cast<size_t>(thread_count);
/external/mesa3d/src/gtest/src/
H A Dgtest-port.cc86 mach_msg_type_number_t thread_count; local
88 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
94 sizeof(thread_t) * thread_count);
95 return static_cast<size_t>(thread_count);
/external/chromium_org/testing/gtest/src/
H A Dgtest-port.cc91 mach_msg_type_number_t thread_count; local
93 const kern_return_t status = task_threads(task, &thread_list, &thread_count);
99 sizeof(thread_t) * thread_count);
100 return static_cast<size_t>(thread_count);
/external/chromium_org/net/test/embedded_test_server/
H A Dembedded_test_server.cc135 const int thread_count = local
150 while (thread_count ==

Completed in 559 milliseconds

12