| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/public/utility/thread.h" | 5 #include "mojo/public/utility/thread.h" |
| 6 | 6 |
| 7 #include "mojo/public/system/macros.h" | 7 #include "mojo/public/c/system/macros.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 class SetIntThread : public Thread { | 13 class SetIntThread : public Thread { |
| 14 public: | 14 public: |
| 15 SetIntThread(int* int_to_set, int value) | 15 SetIntThread(int* int_to_set, int value) |
| 16 : int_to_set_(int_to_set), | 16 : int_to_set_(int_to_set), |
| 17 value_(value) { | 17 value_(value) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 SetIntThread thread(options, &value, 4); | 101 SetIntThread thread(options, &value, 4); |
| 102 thread.Start(); | 102 thread.Start(); |
| 103 thread.Join(); | 103 thread.Join(); |
| 104 }, ""); | 104 }, ""); |
| 105 } | 105 } |
| 106 #endif // !defined(NDEBUG) | 106 #endif // !defined(NDEBUG) |
| 107 | 107 |
| 108 } // namespace | 108 } // namespace |
| 109 } // namespace mojo | 109 } // namespace mojo |
| 110 | 110 |
| OLD | NEW |