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

Unified Diff: base/threading/platform_thread.h

Issue 2702403014: Add operator!= to PlatformThreadRef (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 0b34cce25f957db94cd19d119029e4e74a90933d..511298ee9d41115816c2fbd476e9578893f6bf82 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -59,6 +59,8 @@ class PlatformThreadRef {
return id_ == other.id_;
}
+ bool operator!=(PlatformThreadRef other) const { return id_ != other.id_; }
+
bool is_null() const {
return id_ == 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698