| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "webrtc/rtc_base/arraysize.h" | 15 #include "webrtc/base/arraysize.h" |
| 16 #include "webrtc/rtc_base/checks.h" | 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/rtc_base/criticalsection.h" | 17 #include "webrtc/base/criticalsection.h" |
| 18 #include "webrtc/rtc_base/event.h" | 18 #include "webrtc/base/event.h" |
| 19 #include "webrtc/rtc_base/gunit.h" | 19 #include "webrtc/base/gunit.h" |
| 20 #include "webrtc/rtc_base/platform_thread.h" | 20 #include "webrtc/base/platform_thread.h" |
| 21 #include "webrtc/rtc_base/thread.h" | 21 #include "webrtc/base/thread.h" |
| 22 | 22 |
| 23 namespace rtc { | 23 namespace rtc { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 const int kLongTime = 10000; // 10 seconds | 27 const int kLongTime = 10000; // 10 seconds |
| 28 const int kNumThreads = 16; | 28 const int kNumThreads = 16; |
| 29 const int kOperationsToRun = 1000; | 29 const int kOperationsToRun = 1000; |
| 30 | 30 |
| 31 class UniqueValueVerifier { | 31 class UniqueValueVerifier { |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 for (auto& t : threads) | 404 for (auto& t : threads) |
| 405 t.Start(&test_data, kThreadRepeats, 1); | 405 t.Start(&test_data, kThreadRepeats, 1); |
| 406 | 406 |
| 407 event.Wait(Event::kForever); | 407 event.Wait(Event::kForever); |
| 408 | 408 |
| 409 for (auto& t : threads) | 409 for (auto& t : threads) |
| 410 t.Stop(); | 410 t.Stop(); |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace rtc | 413 } // namespace rtc |
| OLD | NEW |