Em Sábado 3. Outubro 2009, às 17.13.48, você escreveu:
> Can I use QAtomicInt as "an Int with basic operations being atomic":
>  like getting, setting its value. Returning it from a function.
> If not, when and how can I use it.

int is already atomic in those operations.

QAtomicInt introduces new atomic operations: fetch-and-add, test-and-set and 
fetch-and-set. As for the memory ordering semantics, you had better read a 
book.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Development Frameworks
     Sandakerveien 116, NO-0402 Oslo, Norway

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to