-
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:
gc
for forcing garbage collection.add_garbage
for - well - adding new garbage.start_block_dtor
for blocking an object's destructionend_block_dtor
for 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.
Avi-D-coder
Metadata
Metadata
Assignees
Labels
No labels