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

Unified Diff: base/synchronization/lock_impl_posix.cc

Issue 2949953002: Make LockImpl::Unlock available for inlining (Closed)
Patch Set: Created 3 years, 6 months 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 | « base/synchronization/lock_impl.h ('k') | base/synchronization/lock_impl_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock_impl_posix.cc
diff --git a/base/synchronization/lock_impl_posix.cc b/base/synchronization/lock_impl_posix.cc
index e54595b87f10a353647d4a0ee40aa30d2a649780..5ad337d9f715c749b0397cacb8d994e070f5cd57 100644
--- a/base/synchronization/lock_impl_posix.cc
+++ b/base/synchronization/lock_impl_posix.cc
@@ -4,11 +4,9 @@
#include "base/synchronization/lock_impl.h"
-#include <errno.h>
#include <string.h>
#include "base/debug/activity_tracker.h"
-#include "base/logging.h"
#include "base/synchronization/lock.h"
namespace base {
@@ -65,11 +63,6 @@ void LockImpl::Lock() {
DCHECK_EQ(rv, 0) << ". " << strerror(rv);
}
-void LockImpl::Unlock() {
- int rv = pthread_mutex_unlock(&native_handle_);
- DCHECK_EQ(rv, 0) << ". " << strerror(rv);
-}
-
// static
bool LockImpl::PriorityInheritanceAvailable() {
#if PRIORITY_INHERITANCE_LOCKS_POSSIBLE() && defined(OS_MACOSX)
« no previous file with comments | « base/synchronization/lock_impl.h ('k') | base/synchronization/lock_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698