Bug 229171 - Add a thread safe version of WeakPtr
Summary: Add a thread safe version of WeakPtr
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 229168
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-16 17:06 PDT by Ryosuke Niwa
Modified: 2021-08-23 17:07 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2021-08-16 17:06:52 PDT
We need a thread safe version of WeakPtr.

It's not sufficient to make CanMakeThreadSafe thread safe for WeakPtr
since the object can be destructed as we grab the value out of WeakPtr.

Add a mechanism to safely create RefPtr or CheckedPtr out of them.
Comment 1 Yusuke Suzuki 2021-08-16 17:16:24 PDT
Strongly +1!
Comment 2 Radar WebKit Bug Importer 2021-08-23 17:07:23 PDT
<rdar://problem/82268516>