-
Notifications
You must be signed in to change notification settings - Fork 536
Closed
Description
Would be nice to have our resources self-destructed, though I'm not sure we can really do that with our architecture and potential other device back-ends.
The path seems to be mostly cleared now (at last!). Here are the steps we will take:
- wrap resources inside handles with
Arc<> - make
Factoryto store the references to all created resources - implement a
sweep()pass for the device/factory. The device may be able to enumerate all the factories and callsweep()on them. - add a trait that is implemented by both
RcandArc. Examples. - generically parametrize all the handle types by this trait
- make sure using the
GraphicsenforcesRc, while the general way goes withArc - proceed with @csherratt's mutability protection. It's big, so needs its own issue.