| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ | 5 #ifndef SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_ |
| 6 #define DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ | 6 #define SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "device/base/synchronization/shared_memory_seqlock_buffer.h" | 14 #include "device/base/synchronization/shared_memory_seqlock_buffer.h" |
| 15 | 15 |
| 16 namespace device { | 16 namespace device { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 device::SharedMemorySeqLockBuffer<Data>* buffer_; | 68 device::SharedMemorySeqLockBuffer<Data>* buffer_; |
| 69 std::unique_ptr<Data> temp_buffer_; | 69 std::unique_ptr<Data> temp_buffer_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader); | 71 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace device | 74 } // namespace device |
| 75 | 75 |
| 76 #endif // DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ | 76 #endif // SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_ |
| OLD | NEW |