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

Unified Diff: base/synchronization/lock_impl.h

Issue 23753006: base: Rename OSLockType to NativeHandle in Lock API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/condition_variable_win.cc ('k') | base/synchronization/lock_impl_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/lock_impl.h
diff --git a/base/synchronization/lock_impl.h b/base/synchronization/lock_impl.h
index 0b04167b9dba956c4a19c20f7bbb7ea49fc552cf..42e2f99068b9981d2fff058d96a2ae9f2dd4df4e 100644
--- a/base/synchronization/lock_impl.h
+++ b/base/synchronization/lock_impl.h
@@ -25,9 +25,9 @@ namespace internal {
class BASE_EXPORT LockImpl {
public:
#if defined(OS_WIN)
- typedef CRITICAL_SECTION OSLockType;
+ typedef CRITICAL_SECTION NativeHandle;
#elif defined(OS_POSIX)
- typedef pthread_mutex_t OSLockType;
+ typedef pthread_mutex_t NativeHandle;
#endif
LockImpl();
@@ -47,10 +47,10 @@ class BASE_EXPORT LockImpl {
// Return the native underlying lock.
// TODO(awalker): refactor lock and condition variables so that this is
// unnecessary.
- OSLockType* os_lock() { return &os_lock_; }
+ NativeHandle* native_handle() { return &native_handle_; }
private:
- OSLockType os_lock_;
+ NativeHandle native_handle_;
DISALLOW_COPY_AND_ASSIGN(LockImpl);
};
« no previous file with comments | « base/synchronization/condition_variable_win.cc ('k') | base/synchronization/lock_impl_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698