lundi 20 août 2018

Atomic std::shared_ptrs before c++20

Currently I'm using task based scheduling to ensure "thread safe" shared ptr setting/getting, but that is insanely inefficient.

How would one implement atomic shared ptrs using C++11? Can we just use the std::atomic> template?

Aucun commentaire:

Enregistrer un commentaire