[webkit-changes] [WebKit/WebKit] 9cfcc4: [NativePromise] Remove need to provide SerialFunct...
Jean-Yves Avenard
noreply at github.com
Tue Nov 21 17:19:54 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9cfcc4e4e46b498f90c5c83c1b0f340ec588e795
https://github.com/WebKit/WebKit/commit/9cfcc4e4e46b498f90c5c83c1b0f340ec588e795
Author: Jean-Yves Avenard <jya at apple.com>
Date: 2023-11-21 (Tue, 21 Nov 2023)
Changed paths:
M Source/WTF/wtf/NativePromise.h
M Source/WebCore/Modules/mediasource/MediaSource.cpp
M Source/WebCore/platform/graphics/SourceBufferPrivate.cpp
M Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp
Log Message:
-----------
[NativePromise] Remove need to provide SerialFunctionDispatch to all and allSettled
https://bugs.webkit.org/show_bug.cgi?id=265102
rdar://118612313
Reviewed by Dan Glastonbury.
use new whenSettled option that provides immediate dispatch and use locks instead to protect class members.
API tests added
* Source/WTF/wtf/NativePromise.h:
* Source/WebCore/Modules/mediasource/MediaSource.cpp:
(WebCore::MediaSource::completeSeek):
* Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:
(WebCore::SourceBufferPrivate::append):
* Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/271032@main
More information about the webkit-changes
mailing list