OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 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 | 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 NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ | 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ |
6 #define NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ | 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
9 #include "net/quic/platform/api/quic_export.h" | 10 #include "net/quic/platform/api/quic_export.h" |
10 | 11 |
11 #ifndef EXCLUSIVE_LOCK_FUNCTION | 12 #ifndef EXCLUSIVE_LOCK_FUNCTION |
12 #define EXCLUSIVE_LOCK_FUNCTION(...) | 13 #define EXCLUSIVE_LOCK_FUNCTION(...) |
13 #endif | 14 #endif |
14 | 15 |
15 #ifndef UNLOCK_FUNCTION | 16 #ifndef UNLOCK_FUNCTION |
16 #define UNLOCK_FUNCTION(...) | 17 #define UNLOCK_FUNCTION(...) |
17 #endif | 18 #endif |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 private: | 66 private: |
66 base::Lock lock_; | 67 base::Lock lock_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(QuicLockImpl); | 69 DISALLOW_COPY_AND_ASSIGN(QuicLockImpl); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace net | 72 } // namespace net |
72 | 73 |
73 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ | 74 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_MUTEX_IMPL_H_ |
OLD | NEW |