[Qt-interest] QAtomicInt and QThread
Arnold Krille
arnold at arnoldarts.de
Fri Jun 24 11:52:24 CEST 2011
On Friday 24 June 2011 11:38:31 Thiago Macieira wrote:
> I see some manipulation of a non-atomic 64-bit int inside a loop and
> reading of the same 64-bit integer from another function. Since you didn't
> try to use the atomic there, I don't suppose you care that this is
> non-atomic and can produce weird results.
Maybe thats because a 64bit integer is needed here but QAtomicInt is only
32bit?
I had that problem in my software and "solved" it by copying the QAtomicInt
sources into my code-tree to create a QAtomicInt64...
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110624/4e4ebd68/attachment.bin
More information about the Qt-interest-old
mailing list