You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a good idea — please do send a PR! I prefer a separate method so that we can more easily document (by name and docs) that this will accumulate garbage over time, and what users should do when they do want to reclaim.
Threads with tight latency or timing requirements (e.g. soft real-time, audio, high fps GUI) can't afford to reclaim when retiring objects.
There are two ways this could be exposed on
HazPtrObject
:unsafe fn retire_no_reclaim(this: *mut Self, deleter: &'static dyn Deleter) -> usize
unsafe fn retire(this: *mut Self, allow_reclaim: bool, deleter: &'static dyn Deleter) -> usize
I mildly prefer (2). I'm happy to send a PR or leave for discussion on the next stream.
The text was updated successfully, but these errors were encountered: