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

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

Issue 2627153004: Use TLS storage for thread ids in wtf/ThreadingPThreads (Closed)
Patch Set: esprehn suggestion 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..0717936d211af8be44ab1eda0b8a09e05dde4f0d 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() { return m_threadId; }
esprehn 2017/01/12 19:38:49 const
Charlie Harrison 2017/01/12 19:44:33 Done.
+
private:
std::unique_ptr<AtomicStringTable> m_atomicStringTable;
std::unique_ptr<ICUConverterWrapper> m_cachedConverterICU;
+ ThreadIdentifier m_threadId;
+
static ThreadSpecific<WTFThreadData>* staticData;
friend WTFThreadData& wtfThreadData();
};
« no previous file with comments | « third_party/WebKit/Source/wtf/ThreadingPthreads.cpp ('k') | third_party/WebKit/Source/wtf/WTFThreadData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698