Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 #include "net/quic/platform/impl/quic_mutex_impl.h" | |
| 6 | |
| 7 namespace net { | |
| 8 | |
| 9 void QuicLockImpl::WriterLock() { | |
| 10 lock_.Acquire(); | |
| 11 } | |
| 12 | |
| 13 void QuicLockImpl::WriterUnlock() { | |
| 14 lock_.Release(); | |
| 15 } | |
| 16 | |
| 17 void QuicLockImpl::ReaderLock() { | |
| 18 lock_.Acquire(); | |
| 19 } | |
| 20 | |
| 21 void QuicLockImpl::ReaderUnlock() { | |
| 22 lock_.Release(); | |
|
Ryan Hamilton
2016/12/09 22:02:08
Since read and write lock are identical in chrome,
| |
| 23 } | |
| 24 | |
| 25 } // namespace net | |
| OLD | NEW |