Bug 261008 - SerialFunctionDispatcher should implement isCurrent()
Summary: SerialFunctionDispatcher should implement isCurrent()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-31 19:10 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-09-08 13:03 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-08-31 19:10:10 PDT
SerialFunctionDispatcher already implements assertIsCurrent() in debug mode.

RunLoop, a SerialFunctionDispatcher already implement isCurrent().

We should expand isCurrent() to be available on all SerialFunctionDispatcher, the change is trivial considering all versions already implement assertIsCurrent() which contains all the required logic to do so.

This will also be required for the new C++ Promise's directFunctionDispatch mode (bug pending)
Comment 1 Radar WebKit Bug Importer 2023-08-31 19:10:34 PDT
<rdar://problem/114801460>
Comment 2 Jean-Yves Avenard [:jya] 2023-09-01 05:11:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17342
Comment 3 EWS 2023-09-08 13:03:12 PDT
Committed 267808@main (cce771ba5390): <https://commits.webkit.org/267808@main>

Reviewed commits have been landed. Closing PR #17342 and removing active labels.