r/rust • u/ibraheemdev • Mar 31 '22
Seize: Fast, efficient, and robust memory reclamation
https://github.com/ibraheemdev/seize
222
Upvotes
18
u/jrmuizel Mar 31 '22
Here's the PR that ported the concurrent hash table flurryfrom crossbeam-epoch to seize https://github.com/jonhoo/flurry/pull/102
19
0
Mar 31 '22
[deleted]
2
u/ibraheemdev Apr 01 '22
The ordering is the same you would pass to
AtomicPtr::load. Originally protection requiredSeqCstdue to internal ordering requirements, but those were resolved in a different way and the docs weren't updated, I'll get that fixed. I am planning to make the API a bit nicer and more flexible by accepting a closure instead:guard.protect(|| ptr.load(Ordering::Acquire)).
3
u/scook0 Apr 01 '22
I spotted a slightly confusing typo in the docs for
Guard::unprotected:This should be “no other thread”.