Open
Bug 1805830
Opened 2 years ago
Updated 2 years ago
Add a variation of nsMainThreadPtrHolder for other threads
Categories
(Core :: XPCOM, task, P3)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: janv, Unassigned)
Details
nsMainThreadPtrHolder exists to safely handle main-thread-only pointers off the main thread. As more and more stuff moved off the main thread, the need for releasing objects only on the owning thread (which used to be the main thread) has increased. There is already a variation of this class and we are adding a new one in D163938. It would be nice to generalize nsMainThreadPtrHolder, so we wouldn't need to create all these ad hoc classes.
You need to log in
before you can comment on or make changes to this bug.
Description
•