| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "../private/SkAtomics.h" | 8 #include "SkAtomics.h" |
| 9 #include "SkThreadUtils.h" | 9 #include "SkThreadUtils.h" |
| 10 #include "SkTypes.h" | 10 #include "SkTypes.h" |
| 11 #include "Test.h" | 11 #include "Test.h" |
| 12 | 12 |
| 13 struct AddInfo { | 13 struct AddInfo { |
| 14 int32_t valueToAdd; | 14 int32_t valueToAdd; |
| 15 int timesToAdd; | 15 int timesToAdd; |
| 16 unsigned int processorAffinity; | 16 unsigned int processorAffinity; |
| 17 }; | 17 }; |
| 18 | 18 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 { | 58 { |
| 59 SkAtomic<int> v {0}; | 59 SkAtomic<int> v {0}; |
| 60 REPORTER_ASSERT(reporter, 0 == v.load()); | 60 REPORTER_ASSERT(reporter, 0 == v.load()); |
| 61 v = 10; | 61 v = 10; |
| 62 REPORTER_ASSERT(reporter, 10 == v.load()); | 62 REPORTER_ASSERT(reporter, 10 == v.load()); |
| 63 int q = v; | 63 int q = v; |
| 64 REPORTER_ASSERT(reporter, 10 == q); | 64 REPORTER_ASSERT(reporter, 10 == q); |
| 65 } | 65 } |
| 66 } | 66 } |
| OLD | NEW |