Homebrew atomic_ptr rewritten (util/shared_ptr.hpp)

It's analogous to C++20 atomic std::shared_ptr

The following things brought into global namespace:
single_ptr
shared_ptr
atomic_ptr
make_single
This commit is contained in:
Nekotekina 2020-11-26 12:30:51 +03:00
parent bd90e3e37f
commit b5d498ffda
15 changed files with 732 additions and 597 deletions

View file

@ -215,7 +215,7 @@ public:
const char* last_function{}; // Sticky copy of current_function, is not cleared on function return
// Thread name
stx::atomic_cptr<std::string> ppu_tname;
atomic_ptr<std::string> ppu_tname;
u64 last_ftsc = 0;
u64 last_ftime = 0;