[Development] QMutex with pthread on Linux

Thiago Macieira thiago.macieira at intel.com
Sun Aug 26 15:13:44 CEST 2012


On terça-feira, 21 de agosto de 2012 22.36.38, Thiago Macieira wrote:
> Conclusion: I'm glad I use Linux and that we have futex.

By the way, it looks like Windows 8 supports something akin to futexes. At 
least the two basic operations are present:

http://msdn.microsoft.com/en-us/library/windows/desktop/hh706898(v=vs.85).aspx
	WaitOnAddress
http://msdn.microsoft.com/en-us/library/windows/desktop/hh706900(v=vs.85).aspx
	WakeByAddressSingle

That means on Windows 8, we should get efficiency similar to Linux on all cases.

PS: Windows 8 is still missing some of the more advanced operations like 
compare-and-requeue, which are necessary to avoid the "thundering herd" 
problem.
-- 
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/20120826/b9b20aee/attachment.sig>


More information about the Development mailing list