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

Unified Diff: base/non_thread_safe.h

Issue 18677: Use PlatformThreadId, not int when dealing with thread ids. (Closed)
Patch Set: Addressing comments Created 11 years, 11 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/message_pump_glib.cc ('k') | base/platform_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/non_thread_safe.h
diff --git a/base/non_thread_safe.h b/base/non_thread_safe.h
index 45a352d581f6a2cecc743877ab539f19777aeef2..2791fe06e6b7f5a4a272a8e2bdb367c451bb0967 100644
--- a/base/non_thread_safe.h
+++ b/base/non_thread_safe.h
@@ -6,6 +6,7 @@
#define BASE_NON_THREAD_SAFE_H__
#include "base/logging.h"
+#include "base/platform_thread.h"
// A helper class used to help verify that methods of a class are
// called from the same thread. One can inherit from this class and use
@@ -35,7 +36,7 @@ class NonThreadSafe {
bool CalledOnValidThread() const;
private:
- int valid_thread_id_;
+ PlatformThreadId valid_thread_id_;
};
#else
// Do nothing in release mode.
« no previous file with comments | « base/message_pump_glib.cc ('k') | base/platform_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698