[Qt-interest] do i need QReadWriteLock?

Serge mb0 at km.ru
Fri Apr 17 12:08:17 CEST 2009


Hi,

i have 2 threads
one is writing to bool value.
another is only reading its value.
they can do it simultaneously.
must i use QReadWriteLock to block reading when writing happens, and 
block writing when reading happens? Or for bool value read/write from 2 
threads will not conflict?

--
Serge



More information about the Qt-interest-old mailing list