1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TRIVIAL_CTOR_H_ 6 #define TRIVIAL_CTOR_H_ 7 8 // Mocked for testing: 9 namespace std { 10 11 template<typename T> 12 struct atomic { 13 T i; 14 }; 15 16 typedef atomic<int> atomic_int; 17 18 } // namespace std 19 20 struct MySpinLock { 21 MySpinLock(); 22 ~MySpinLock(); 23 MySpinLock(const MySpinLock&); 24 MySpinLock(MySpinLock&&); 25 std::atomic_int lock_; 26 }; 27 28 #endif // TRIVIAL_CTOR_H_ 29