[Qt-interest] thread safety of Qt containers
Thiago Macieira
thiago at kde.org
Mon Apr 26 13:41:26 CEST 2010
Em Segunda-feira 26 Abril 2010, às 12:21:42, Ross Bencina escreveu:
> Thiago Macieira wrote:
> >> So... how does QtConcurrent work?
> >
> > There's a mutex. That ensures that there's only one thread accessing the
> > container at a time.
>
> Are there any plans for Qt to implement lock-free data structures for
> queues, stacks etc in the future?
Plans? No.
We have some research work, but no plans of productising it.
Lock-free structures are very platform-dependent, due to the differences
between atomic and LL/SC architectures.
And x86-64's lack of 16-byte CAS in some processors.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100426/94cb66c9/attachment.bin
More information about the Qt-interest-old
mailing list