synchronized in Java can guarantee safety of thread. What about C++?
synchronized
Java
C++
Thank you!
There is no keyword in C++03 equivalent to synchronized in Java . But you can use Mutex to guarantee safety of thread.