[Development] QBasicMutex::lockInternal() race condition?

Thiago Macieira thiago.macieira at intel.com
Fri Sep 21 19:32:05 CEST 2012


On sexta-feira, 21 de setembro de 2012 16.46.44, Tony Van Eerd wrote:
> I'll take that as a 'No'.  ie use of DCAS would be limited to the point of
> it not being worth maintaining 2 separate implementations - one with DCAS,
> one without.  I think DCAS is only worth using if it could be used
> everywhere.

Right. Because of the silly x86-64 early mistake, we need to support a non-
DCAS version. Or ban those early processors without "cx16" support.

Even then, we need a separate implementation for LL/SC architectures.

We don't need to decide on that now. But if you do have a good solution with 
DCAS, we could consider it later. We just need to double the size of QMutex 
now.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120921/8d53ce9c/attachment.sig>


More information about the Development mailing list