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

Unified Diff: base/threading/thread.h

Issue 2857103005: Exempt the Service Thread from BLOCK_SHUTDOWN DCHECKs (Closed)
Patch Set: CR Feedback + Additional DCHECK_IS_ON due to the way DCHECKs are implemented Created 3 years, 8 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
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index 2db69c2148019ad3c666d001524344dc45ce1ce2..d13d7d7b6ede75d1ccd32ca3e043a5ac11a16a30 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -245,6 +245,12 @@ class BASE_EXPORT Thread : PlatformThread::Delegate {
// This method is thread-safe.
PlatformThreadId GetThreadId() const;
+ // Returns the current thread handle. If called before Start*() returns or
+ // after Stop() returns, an empty thread handle will be returned.
+ //
+ // This method is thread-safe.
gab 2017/05/04 18:11:58 TODO(robliao): remove this when it no longer needs
robliao 2017/05/04 19:01:49 Done.
+ PlatformThreadHandle GetThreadHandle() const;
+
// Returns true if the thread has been started, and not yet stopped.
bool IsRunning() const;

Powered by Google App Engine
This is Rietveld 408576698