Primitive types and threading

  • Thread starter Thread starter decrypted
  • Start date Start date
D

decrypted

Is it generally ok to access static primitive types defined on the main
thread from a worker thread?
 
I don't see any reason not to do it as long as any attempt simultaneously to
read and wright the value is synchronized.
 
Back
Top