no-defun-allowed / the_cooler_shared_ptr

Coalesced reference counting smart pointer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Coalesced reference counting smart pointer


Languages

Language:C++ 96.2%Language:Makefile 3.8%