[Qt-interest] do i need QReadWriteLock?
Pascal Patry
iscy at invalidip.com
Mon Apr 20 17:06:15 CEST 2009
On Friday 17 April 2009 17:10:16 Malyushytsky, Alex wrote:
> I believe for standard types you don't need lock anything cause these
> operations are atomic, which is guaranteed by the system and is much more
> efficient than any other blocking you can create.
Could be true for a system, but not for another one. You should never take
assumptions like these. This is also why TR1 will support atomic operations on
scalar types.
More information about the Qt-interest-old
mailing list