pascaldragon at googlemail.com
Tue Apr 5 11:10:38 CEST 2022
Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb
am Di., 5. Apr. 2022, 10:36:
> On Tue, 5 Apr 2022 10:23:45 +0200 (CEST)
> Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
> > RTLEventWaitFor uses WaitForSingleObject internally.
> > According to this:
> > https://docs.microsoft.com/en-gb/windows/win32/sync/wait-functions
> > The system clock (and not some high-performance counter) is used to
> > determine resolution of the timeout. You could call timeGetDevCaps to
> > check the resolution.
> It gives min 1, max 1000000.
> I tried setting with timeBeginPeriod without effect.
Current Windows doesn't respect timeBeginPeriod like it used to (we had a
problem with that at work as well). In the end there's not much you can do.
If the OS doesn't provide smaller timeouts then you're simply out of luck.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal