in your case, it would be sharing memory, share variable between threads and modify it atomically or through mutex.
- Re: how to get value of object's field from second thread? mashingan
in your case, it would be sharing memory, share variable between threads and modify it atomically or through mutex.