Modernize HashTable threading code
https://bugs.webkit.org/show_bug.cgi?id=127621
Reviewed by Darin Adler.
Source/WebCore:
Explicitly include headers that used to be brought in by HashTable.h
Change a Windows-specific typedef to avoid having to include WindDef.h from a header.
- platform/audio/AudioSession.h:
- platform/network/cf/SocketStreamHandle.h:
Source/WebKit/win:
Explicitly include headers that used to be brought in by HashTable.h
- WebLocalizableStrings.cpp:
Source/WebKit2:
Explicitly include headers that used to be brought in by HashTable.h
- Shared/BlockingResponseMap.h:
Source/WTF:
Use std::mutex and std::atomic instead of WTF threading primitives.
- wtf/DynamicAnnotations.h:
Include Platform.h here since this file relies on USE macros.
(WTF::HashTableStats::recordCollisionAtCount):
Change this to take an unsigned.
(WTF::HashTableStats::dumpStats):
(WTF::KeyTraits>::HashTable):
(WTF::KeyTraits>::remove):
(WTF::KeyTraits>::invalidateIterators):
Use a single probe counter.
(WTF::addIterator):
(WTF::removeIterator):
Tools:
Explicitly include headers that used to be brought in by HashTable.h
- DumpRenderTree/JavaScriptThreading.cpp: