Browse Source
Implement an atomic refcounter with a weak but correct (1) memory order,
and expose a simple API.
(1) See for example "Using weakly ordered C++ atomics correctly" by Hans
Boehm at CppCon 2016 (the refcounting part also applies to C11):
<https://www.youtube.com/watch?v=M15UKpNlpeM&t=45m15s>
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
pull/73/head
committed by
Steve Lhomme
1 changed files with 28 additions and 0 deletions
Loading…
Reference in new issue