[WTF] Use Semaphore and BinarySemaphore instead of dispatch_semaphore_t
[WebKit-https.git] / Source / WTF / ChangeLog
1 2018-09-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2
3         [WTF] Use Semaphore and BinarySemaphore instead of dispatch_semaphore_t
4         https://bugs.webkit.org/show_bug.cgi?id=185339
5
6         Reviewed by Mark Lam.
7
8         This patch adds WTF::Semaphore, which is based on WTF::Lock and WTF::Condition.
9
10         * WTF.xcodeproj/project.pbxproj:
11         * wtf/CMakeLists.txt:
12         * wtf/Semaphore.h: Added.
13         (WTF::Semaphore::Semaphore):
14         (WTF::Semaphore::signal):
15         (WTF::Semaphore::waitUntil):
16         (WTF::Semaphore::waitFor):
17         (WTF::Semaphore::wait):
18         * wtf/generic/WorkQueueGeneric.cpp:
19         (WorkQueue::platformInitialize):
20         * wtf/threads/BinarySemaphore.cpp:
21         (WTF::BinarySemaphore::waitUntil):
22         (WTF::BinarySemaphore::wait): Deleted.
23         * wtf/threads/BinarySemaphore.h:
24         (WTF::BinarySemaphore::waitFor):
25         (WTF::BinarySemaphore::wait):
26         Align the names of the functions to WTF::Condition.
27         Add BinarySemaphore::wait(), which is the same to waitUntil(WallTime::infinity()).
28
29 2018-09-17  Jer Noble  <jer.noble@apple.com>
30
31         Add support for HEVC codec types in Media Capabilities
32         https://bugs.webkit.org/show_bug.cgi?id=189565
33
34         Reviewed by Eric Carlson.
35
36         Extract the toIntegralType template into its own header.
37
38         * wtf/CMakeLists.txt:
39         * wtf/text/StringConversion.h: Added.
40         (isCharacterAllowedInBase):
41         (toIntegralType):
42         * wtf/text/WTFString.cpp:
43
44 2018-09-17  Jer Noble  <jer.noble@apple.com>
45
46         Enable USE_MEDIAREMOTE on iOS
47         https://bugs.webkit.org/show_bug.cgi?id=189096
48
49         Reviewed by Eric Carlson.
50
51         * wtf/Platform.h:
52
53 2018-09-17  Frederic Wang  <fwang@igalia.com>
54
55         Build error in ImageBufferCG when compiled with IOSurfacePool
56         https://bugs.webkit.org/show_bug.cgi?id=189579
57
58         Reviewed by Tim Horton.
59
60         IOSurface.h might be included with different value of IOSURFACE_CANVAS_BACKING_STORE, causing
61         compilation errors when files in the same unified source do not agree on the definition.
62         This patch moves the definition of IOSURFACE_CANVAS_BACKING_STORE from ImageBufferDataCG.h
63         to Platform.h so that IOSURFACE_CANVAS_BACKING_STORE is set to the same value in all files.
64         Finally some minors changes to explicitly declare/define ImageBuffer are performed in order
65         to prevent future issues with Unified build rotating.
66
67         * wtf/Platform.h: Move definition from ImageBufferDataCG.h.
68
69 2018-09-14  Ryan Haddad  <ryanhaddad@apple.com>
70
71         Unreviewed, rolling out r235990.
72
73         Introduced TestWebKitAPI.NowPlayingTest timeouts on iOS
74
75         Reverted changeset:
76
77         "Enable USE_MEDIAREMOTE on iOS"
78         https://bugs.webkit.org/show_bug.cgi?id=189096
79         https://trac.webkit.org/changeset/235990
80
81 2018-09-13  Jer Noble  <jer.noble@apple.com>
82
83         Enable USE_MEDIAREMOTE on iOS
84         https://bugs.webkit.org/show_bug.cgi?id=189096
85
86         Reviewed by Eric Carlson.
87
88         * wtf/Platform.h:
89
90 2018-09-13  Alex Christensen  <achristensen@webkit.org>
91
92         Use a Variant instead of a union in CSSSelector
93         https://bugs.webkit.org/show_bug.cgi?id=188559
94
95         Reviewed by Antti Koivisto.
96
97         * wtf/Variant.h:
98         Add packing macros to make it so Variant-containing structures don't always have 7 bytes of padding per Variant.
99
100 2018-09-12  Guillaume Emont  <guijemont@igalia.com>
101
102         Add IGNORE_WARNING_.* macros
103         https://bugs.webkit.org/show_bug.cgi?id=188996
104
105         Reviewed by Michael Catanzaro.
106
107         * wtf/Assertions.cpp:
108         * wtf/Assertions.h:
109         * wtf/Compiler.h:
110         * wtf/MD5.cpp:
111         (WTF::MD5::MD5):
112         (WTF::MD5::addBytes):
113         (WTF::MD5::checksum):
114         * wtf/PrintStream.cpp:
115         (WTF::PrintStream::printfVariableFormat):
116         * wtf/SHA1.cpp:
117         (WTF::SHA1::SHA1):
118         (WTF::SHA1::addBytes):
119         (WTF::SHA1::computeHash):
120         * wtf/ThreadingPthreads.cpp:
121         * wtf/Vector.h:
122         (WTF::VectorBuffer::endOfBuffer):
123         * wtf/text/WTFString.cpp:
124         (WTF::createWithFormatAndArguments):
125
126 == Rolled over to ChangeLog-2018-09-11 ==