Bug 266199
Summary: | [WTF] Distinguish SerialFunctionDispatcher that are refcounted | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
Component: | Web Template Framework | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Jean-Yves Avenard [:jya]
Right now, SerialFunctionDispatcher is designed to have an explicit lifetime.
All SerialFunctionDispatcher but one are currently ref counted.
We need to be able to easily determine if a SerialFunctionDispatcher is refounted by having a RefCountedSerialFunctionDispatcher
This change isn't aimed at resolving the SerialFunctionDispatcher API contact, which is there's no guarantee currently that the dispatched runnable will actually be run and that the SerialFunctionDispatcher got shutdown.
RefCountedSerialFunctionDispatcher is just about enforcing the lifetime of the object, not the lifetime of the API contract.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jean-Yves Avenard [:jya]
Correction:
RefCountedSerialFunctionDispatcher will enforce that the function dispatched is guaranteed to run.
Radar WebKit Bug Importer
<rdar://problem/119476929>
Jean-Yves Avenard [:jya]
<rdar://problem/119476929>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/21617
EWS
Committed 271860@main (cfe5a3b9ba53): <https://commits.webkit.org/271860@main>
Reviewed commits have been landed. Closing PR #21617 and removing active labels.