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

Unified 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: fix 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
+
+} // namespace net
« 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