gbm.rs icon indicating copy to clipboard operation
gbm.rs copied to clipboard

WIP Use strong references to `gbm_device` in `Surface`/`BufferObject`

Open ids1024 opened this issue 2 years ago • 0 comments

Using a strong reference is the most obvious way to address https://github.com/Smithay/smithay/issues/1102. And getting rid of DeviceDestroyedError makes the API a fair bit cleaner.

Though Device.fd will also need to be reference counted for this to fix the issue here. Presumably. And this will need testing. Leaving as a draft at the moment.

Any reason not to do this, or why it may cause problems? I guess Device will require T: Sync...

ids1024 avatar Aug 17 '23 02:08 ids1024