[Development] Mutex future directions

bradley.hughes at nokia.com bradley.hughes at nokia.com
Wed May 23 06:54:11 CEST 2012


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

--
Bradley T. Hughes
bradley.hughes at nokia.com




More information about the Development mailing list