[Development] Mutex future directions

Thiago Macieira thiago.macieira at intel.com
Wed May 23 11:17:06 CEST 2012

On quarta-feira, 23 de maio de 2012 04.54.11, bradley.hughes at nokia.com wrote:
> On May 22, 2012, at 11:01 AM, ext Thiago Macieira wrote:
> > And I don't think they very much liked the idea of spinning while trying
> > to
> > acquire a lock (consumes power)... at least we have a call to
> > QThread::yieldCurrentThread(), though it would be interesting to see what
> > happens if we replace it with a PAUSE instruction.
> Have you seen the spin code in 4.8? It does use
> QThread::yieldCurrentThread(). ;)

Indeed it does. I'm saying that it would be interesting to check what happens 
if we replace it with a simple PAUSE instruction. We might be able to achieve 
the same result with a much smaller overhead.

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/20120523/b61fff3b/attachment.sig>

More information about the Development mailing list