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

Unified Diff: third_party/WebKit/Source/wtf/Threading.h

Issue 2728453006: WTF: Initialize main-thread stack estimates when WTF starts up. (Closed)
Patch Set: fix cast for windows 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
Index: third_party/WebKit/Source/wtf/Threading.h
diff --git a/third_party/WebKit/Source/wtf/Threading.h b/third_party/WebKit/Source/wtf/Threading.h
index 784470c708f8127ea9ce008e5513abf44b03d130..4f01de86684482ca0e56f524ac18fa25ef1e8d14 100644
--- a/third_party/WebKit/Source/wtf/Threading.h
+++ b/third_party/WebKit/Source/wtf/Threading.h
@@ -47,6 +47,9 @@ namespace internal {
WTF_EXPORT ThreadIdentifier currentThreadSyscall();
} // namespace internal
+// Must be called before |currentThread|.
haraken 2017/03/06 01:44:03 Can we add a dcheck about this fact? BTW, who cal
jbroman 2017/03/06 16:14:03 Sure.
+WTF_EXPORT void initializeCurrentThread();
+
WTF_EXPORT ThreadIdentifier currentThread();
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698