[Webkit-unassigned] [Bug 238871] Multiple uses of ThreadSafeRefCounted and CanMakeWeakPtr with non-thread-safe WeakPtr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 15 05:07:29 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=238871

--- Comment #13 from Kimmo Kinnunen <kkinnunen at apple.com> ---
> The general case does not seem too bad to me, you cannot use WeakPtr except in the right thread.

No, this is incorrect.
You cannot use WeakPtr in *any* thread, if the object has been reffed in another thread.
This is the kind of problem why it shouldn't exist. Developers do not know what is correct and what is not.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221115/770b3a15/attachment.htm>


More information about the webkit-unassigned mailing list