My question is very(I hope not too) simple. Why isn't std::atomic<double> implemented completely? I know it has to do with interlocked variable access. But I really don't see, why this shouldn't be possible on a double.
And what is the solution for the lack of an atomic double? Should I resign to using a mutex, with a considerably larger amount of overhead? Or create my own implementation of std::atomic<double>? And if the latter is a good solution, why isn't it provided by the standard in the first place?
Aucun commentaire:
Enregistrer un commentaire