Chromium Code Reviews| Index: net/quic/platform/impl/quic_mutex_impl.cc |
| diff --git a/net/quic/platform/impl/quic_mutex_impl.cc b/net/quic/platform/impl/quic_mutex_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..95e46c1947fa59ac5039c87b3a4f0a5e1ebf8111 |
| --- /dev/null |
| +++ b/net/quic/platform/impl/quic_mutex_impl.cc |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "net/quic/platform/impl/quic_mutex_impl.h" |
| + |
| +namespace net { |
| + |
| +void QuicLockImpl::WriterLock() { |
| + lock_.Acquire(); |
| +} |
| + |
| +void QuicLockImpl::WriterUnlock() { |
| + lock_.Release(); |
| +} |
| + |
| +void QuicLockImpl::ReaderLock() { |
| + lock_.Acquire(); |
| +} |
| + |
| +void QuicLockImpl::ReaderUnlock() { |
| + lock_.Release(); |
|
Ryan Hamilton
2016/12/09 22:02:08
Since read and write lock are identical in chrome,
|
| +} |
| + |
| +} // namespace net |