Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 483 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 483 Bytes

The Cooler shared_ptr

crc::cooler_shared_ptr provides a coalescing reference-counting smart pointer, which trades off immediate destruction for fewer refcount updates. You may also call crc::collect() to cause collection to run immediately.

This isn't thread-safe at all. I'm not entirely convinced it works with one thread, even. But RAII does suffice to provide a shadow stack of sorts.