Skip to content

no-defun-allowed/the_cooler_shared_ptr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published