[Development] Windows Timer Resolution: The Great Rule Change

Thiago Macieira thiago.macieira at intel.com
Thu Oct 8 02:34:43 CEST 2020


On Wednesday, 7 October 2020 06:47:27 PDT Philippe wrote:
> Obviously, QThread::msleep is affected, but probably other APIs with a
> timeout (?)
> 
> https://randomascii.wordpress.com/2020/10/04/windows-timer-resolution-the-gr
> eat-rule-change/

Any and all uses of "sleep" are wrong. Given that they are wrong, who cares if 
they sleep for 14 milliseconds too long?

Now, the question is how WaitFor{SingleObject,MultipleObjects} are affected. 
Does this mean that asking for a timeout of 2 milliseconds could result in 
being 13 seconds too late?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Development mailing list