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

Unified Diff: base/threading/thread.h

Issue 2857103005: Exempt the Service Thread from BLOCK_SHUTDOWN DCHECKs (Closed)
Patch Set: CR Feedback Created 3 years, 7 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/task_scheduler/task_tracker_posix.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread.h
diff --git a/base/threading/thread.h b/base/threading/thread.h
index 2db69c2148019ad3c666d001524344dc45ce1ce2..8237a23a57c6e2e6092314140be2a2054b03e577 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -245,6 +245,15 @@ 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.
+ //
+ // TODO(robliao): Remove this when it no longer needs to be temporarily
+ // exposed for http://crbug.com/717380.
+ PlatformThreadHandle GetThreadHandle() const;
+
// Returns true if the thread has been started, and not yet stopped.
bool IsRunning() const;
« no previous file with comments | « base/task_scheduler/task_tracker_posix.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698