Searched refs:kThreadCount (Results 1 - 12 of 12) sorted by relevance

/external/chromium_org/v8/src/base/platform/
H A Dcondition-variable-unittest.cc61 static const int kThreadCount = 128; local
62 ThreadWithMutexAndConditionVariable threads[kThreadCount];
64 for (int n = 0; n < kThreadCount; ++n) {
75 for (int n = kThreadCount - 1; n >= 0; --n) {
81 for (int n = 0; n < kThreadCount; ++n) {
90 for (int n = kThreadCount - 1; n >= 0; --n) {
100 for (int n = 0; n < kThreadCount; ++n) {
142 static const int kThreadCount = 128; local
143 ThreadWithSharedMutexAndConditionVariable threads[kThreadCount];
147 for (int n = 0; n < kThreadCount;
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stoptheworld_test.cc92 static const uptr kThreadCount = 50; member in namespace:__sanitizer
99 volatile int counters[kThreadCount];
100 pthread_t thread_ids[kThreadCount];
118 if (this_thread_index + 1 < kThreadCount) {
127 kThreadCount - callback_argument->thread_index);
148 int counters_at_init[kThreadCount];
149 for (uptr j = 0; j < kThreadCount; j++)
154 for (uptr j = 0; j < kThreadCount; j++)
182 while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount)
187 for (uptr i = 0; i < kThreadCount;
[all...]
H A Dsanitizer_linux_test.cc67 for (uptr i = 0; i < kThreadCount; i++) {
85 static const uptr kThreadCount = 20; member in class:__sanitizer::ThreadListerTest
/external/chromium_org/testing/gtest/test/
H A Dgtest_stress_test.cc62 const int kThreadCount = 50; member in namespace:testing::__anon10885
94 for (int i = 0; i < kThreadCount; i++) {
110 // This assertion should fail kThreadCount times per thread. It
129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount];
131 for (int i = 0; i != kThreadCount; i++)
139 for (int i = 0; i != kThreadCount; i++)
143 // Ensures that kThreadCount*kThreadCount failures have been reported.
153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count())
156 for (int i = 0; i < kThreadCount;
[all...]
H A Dgtest-port_test.cc1113 const int kThreadCount = 7; local
1114 scoped_ptr<ThreadType> counting_threads[kThreadCount];
1116 // Creates and runs kThreadCount threads that increment locked_counter
1118 for (int i = 0; i < kThreadCount; ++i) {
1125 for (int i = 0; i < kThreadCount; ++i)
1132 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
/external/gtest/test/
H A Dgtest_stress_test.cc62 const int kThreadCount = 50; member in namespace:testing::__anon21617
94 for (int i = 0; i < kThreadCount; i++) {
110 // This assertion should fail kThreadCount times per thread. It
129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount];
131 for (int i = 0; i != kThreadCount; i++)
139 for (int i = 0; i != kThreadCount; i++)
143 // Ensures that kThreadCount*kThreadCount failures have been reported.
153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count())
156 for (int i = 0; i < kThreadCount;
[all...]
H A Dgtest-port_test.cc1102 const int kThreadCount = 7; local
1103 scoped_ptr<ThreadType> counting_threads[kThreadCount];
1105 // Creates and runs kThreadCount threads that increment locked_counter
1107 for (int i = 0; i < kThreadCount; ++i) {
1114 for (int i = 0; i < kThreadCount; ++i)
1121 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
/external/protobuf/gtest/test/
H A Dgtest_stress_test.cc53 const int kThreadCount = 50; member in namespace:testing::__anon28921
84 for (int i = 0; i < kThreadCount; i++) {
100 // This assertion should fail kThreadCount times per thread. It
/external/chromium_org/base/synchronization/
H A Dcondition_variable_unittest.cc253 const int kThreadCount = 10; local
254 WorkQueue queue(kThreadCount); // Start the threads.
393 queue.ThreadSafeCheckShutdown(kThreadCount));
397 const int kThreadCount = 200; local
398 WorkQueue queue(kThreadCount); // Start the threads.
425 queue.SetTaskCount(20 * kThreadCount);
444 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments());
445 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks());
448 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks());
452 queue.SetTaskCount(kThreadCount *
[all...]
/external/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_mutex.cc179 const int kThreadCount = 8; local
193 pthread_t threads[kThreadCount];
194 for (int t = 0; t < kThreadCount; t++)
196 for (int t = 0; t < kThreadCount; t++)
/external/chromium_org/mojo/common/
H A Dhandle_watcher_unittest.cc424 // repeatedly starting and stopping watches. It spins up kThreadCount
429 const int kThreadCount = 15; local
432 const int kThreadCount = 10;
440 int threads_active_counter = kThreadCount;
443 for (int i = 0; i < kThreadCount; ++i) {
455 for (int i = 0; i < kThreadCount; ++i) {
/external/chromium_org/sync/syncable/
H A Ddirectory_unittest.cc1571 const int kThreadCount = 7; local
1572 base::PlatformThreadHandle threads[kThreadCount];
1573 scoped_ptr<StressTransactionsDelegate> thread_delegates[kThreadCount];
1575 for (int i = 0; i < kThreadCount; ++i) {
1581 for (int i = 0; i < kThreadCount; ++i) {

Completed in 295 milliseconds