Closed shindavid closed 1 year ago
Or actually, maybe instead of touching LRUCache, I can create a wrapper around std::shared_ptr
that has copy constructor and operator=
overrides that dispatch to std::atomic_*()
.
Downgrade no longer necessary, thanks to work by @xorvoid
Note: this pull request is NOT complete. The LRUCache data structure needs to be specialized when using sharedptr values to use `std::atomic*
instead of
operator=` and similar.