Bug 229171

Summary: Add a thread safe version of WeakPtr
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 229168    
Bug Blocks:    

Ryosuke Niwa
Reported 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.
Attachments
Yusuke Suzuki
Comment 1 2021-08-16 17:16:24 PDT
Strongly +1!
Radar WebKit Bug Importer
Comment 2 2021-08-23 17:07:23 PDT
Note You need to log in before you can comment on or make changes to this bug.