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

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

Issue 2627153004: Use TLS storage for thread ids in wtf/ThreadingPThreads (Closed)
Patch Set: const Created 3 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
Index: third_party/WebKit/Source/wtf/WTFThreadData.h
diff --git a/third_party/WebKit/Source/wtf/WTFThreadData.h b/third_party/WebKit/Source/wtf/WTFThreadData.h
index 7d9d991f657efc662ec8ff72a4c23c385e99c2e3..a3351de1a4782adffc7051de70bf835f2becd445 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.h
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.h
@@ -53,10 +53,14 @@ class WTF_EXPORT WTFThreadData {
ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; }
+ ThreadIdentifier threadId() const { return m_threadId; }
+
private:
std::unique_ptr<AtomicStringTable> m_atomicStringTable;
std::unique_ptr<ICUConverterWrapper> m_cachedConverterICU;
+ ThreadIdentifier m_threadId;
+
static ThreadSpecific<WTFThreadData>* staticData;
friend WTFThreadData& wtfThreadData();
};

Powered by Google App Engine
This is Rietveld 408576698