-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I was wondering if the API could be generalized to the extend that switching to non-epoch (e.g. conc) backends would be possible.
For example, there could be a Backend trait with an interface something like this:
gcfor forcing garbage collection.add_garbagefor - well - adding new garbage.start_block_dtorfor blocking an object's destructionend_block_dtorfor ending the block.
Under epochs, 3. and 4. would corresponds to pin and Guard::drop respectively. Under hazards, 3. and 4. would correspond to creating hazards and freeing them respectively.
cc. @stjepang.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels