Mattias Gaertner via fpc-pascal <fpc-pascal@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@lists.freepascal.org>
> wrote:
>
> >[...]
> > 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.

Regards,
Sven

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to