xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/platform/api/quic_mutex.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 // TODO(b/178613777): Remove this file.
6 
7 #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_MUTEX_H_
8 #define QUICHE_QUIC_PLATFORM_API_QUIC_MUTEX_H_
9 
10 #include "quiche/common/platform/api/quiche_mutex.h"
11 
12 #define QUIC_EXCLUSIVE_LOCKS_REQUIRED QUICHE_EXCLUSIVE_LOCKS_REQUIRED
13 #define QUIC_GUARDED_BY QUICHE_GUARDED_BY
14 #define QUIC_LOCKABLE QUICHE_LOCKABLE
15 #define QUIC_LOCKS_EXCLUDED QUICHE_LOCKS_EXCLUDED
16 #define QUIC_SHARED_LOCKS_REQUIRED QUICHE_SHARED_LOCKS_REQUIRED
17 #define QUIC_EXCLUSIVE_LOCK_FUNCTION QUICHE_EXCLUSIVE_LOCK_FUNCTION
18 #define QUIC_UNLOCK_FUNCTION QUICHE_UNLOCK_FUNCTION
19 #define QUIC_SHARED_LOCK_FUNCTION QUICHE_SHARED_LOCK_FUNCTION
20 #define QUIC_SCOPED_LOCKABLE QUICHE_SCOPED_LOCKABLE
21 #define QUIC_ASSERT_SHARED_LOCK QUICHE_ASSERT_SHARED_LOCK
22 
23 namespace quic {
24 
25 using QuicMutex = quiche::QuicheMutex;
26 using QuicReaderMutexLock = quiche::QuicheReaderMutexLock;
27 using QuicWriterMutexLock = quiche::QuicheWriterMutexLock;
28 using QuicNotification = quiche::QuicheNotification;
29 
30 }  // namespace quic
31 
32 #endif  // QUICHE_QUIC_PLATFORM_API_QUIC_MUTEX_H_
33