object_threadsafe
object_threadsafe copied to clipboard
We make any object thread-safe and std::shared_mutex 10 times faster to achieve the speed of lock-free algorithms on >85% reads
I needed to convert `std::unique_ptr` to `sf::safe_ptr` in my project, so I've added an appropriate constructor
If a mutex instance gets used, deleted and then recreated in the same thread - especially on the stack, the new instance might get the same memory address as the...
2 correction: 1) std::forward 2) make_safe instead constructor