Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: net/quic/platform/impl/quic_mutex_impl.cc

Issue 2561913003: Create a QUIC wrapper around a mutex and a mutex lock. (Closed)
Patch Set: remove 2 headers Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « net/quic/platform/impl/quic_mutex_impl.h ('k') | net/quic/test_tools/quic_crypto_server_config_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698