[Development] Mutex future directions

Carsten Breuer CarstenBreuerQt at textwork.de
Wed May 23 22:52:55 CEST 2012


Hi Bradley,

>> 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(). ;)

I guess it depends a bit on if you want to yield to another thread or
not ;-). Of course: burning cpu time is another way to solve this ;-)

Greetings,


Carsten

> 
> --
> Bradley T. Hughes
> bradley.hughes at nokia.com
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development




More information about the Development mailing list