Changeset 200420 in webkit
- Timestamp:
- May 4, 2016 10:20:31 AM (8 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r200416 r200420 1 2016-05-04 Per Arne Vollan <peavo@outlook.com> 2 3 [Win] Use NeverDestroyed template. 4 https://bugs.webkit.org/show_bug.cgi?id=157345 5 6 Reviewed by Darin Adler. 7 8 * wtf/ThreadingWin.cpp: 9 (WTF::threadMapMutex): 10 (WTF::threadMap): 11 1 12 2016-05-04 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WTF/wtf/ThreadingWin.cpp
r199762 r200420 100 100 #include <wtf/HashMap.h> 101 101 #include <wtf/MathExtras.h> 102 #include <wtf/NeverDestroyed.h> 102 103 #include <wtf/RandomNumberSeed.h> 103 104 #include <wtf/WTFThreadData.h> … … 142 143 static Mutex& threadMapMutex() 143 144 { 144 static Mutexmutex;145 static NeverDestroyed<Mutex> mutex; 145 146 return mutex; 146 147 } … … 167 168 static HashMap<DWORD, HANDLE>& threadMap() 168 169 { 169 static HashMap<DWORD, HANDLE> map;170 static NeverDestroyed<HashMap<DWORD, HANDLE>> map; 170 171 return map; 171 172 }
Note: See TracChangeset
for help on using the changeset viewer.