Accoding to cppreference.com:
The thread that intends to modify the variable has to acquire a std::mutex (typically via std::lock_
The thread that intends to modify the variable has to
Found a very good explanation about this issue in another thread. Take a loot at
Questions where asked below about race conditions. If the data being communicated is atomic, can't we do without the mutex on the "send" side?
Questions where asked below about race conditions.
If the data being communicated is atomic, can't we do without the mutex on the "send" side?
at the end.