On terça-feira, 19 de junho de 2012 10.07.36, Peter Kümmel wrote: > BTW, are there any plans to use lock-free techniques somewhere within Qt? > > Or have you already evaluated it? The lock-free strategy looks a bit > like transactional memory: try it until it is right.
Morten wrote one implementation a few years ago.
One of the big problems with lock-free is to ensure no ABA problems, and that
requires a bit better control of the atomics than QBasicAtomic provides. In
particular, it requires a weak mode for LL/SC architectures and it requires a
double-pointer atomic for non-LL/SC architectures.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
