Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread José Mejuto via fpc-pascal
El 05/04/2022 a las 1:03, Mattias Gaertner via fpc-pascal escribió: Hi Michael, Under Linux a RTLEventWaitFor(e,1) usually waits at most 1ms. But under Windows it usually waits at least 15ms. It seems to round to nearest 1/64 of a second. Googling this lead me to question the sanity of some blo

Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread Martin Frb via fpc-pascal
On 05/04/2022 01:03, Mattias Gaertner via fpc-pascal wrote: Under Linux a RTLEventWaitFor(e,1) usually waits at most 1ms. But under Windows it usually waits at least 15ms. It seems to round to nearest 1/64 of a second. Has anyone an idea if this is normal on Windows and if there is an alternativ

Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread Sven Barth via fpc-pascal
Mattias Gaertner via fpc-pascal schrieb am Di., 5. Apr. 2022, 10:36: > On Tue, 5 Apr 2022 10:23:45 +0200 (CEST) > Michael Van Canneyt via fpc-pascal > wrote: > > >[...] > > RTLEventWaitFor uses WaitForSingleObject internally. > > > > According to this: > > > > https://docs.microsoft.com/en-gb/wi

Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread Michael Van Canneyt via fpc-pascal
On Tue, 5 Apr 2022, Mattias Gaertner via fpc-pascal wrote: On Tue, 5 Apr 2022 10:23:45 +0200 (CEST) Michael Van Canneyt via fpc-pascal wrote: [...] RTLEventWaitFor uses WaitForSingleObject internally. According to this: https://docs.microsoft.com/en-gb/windows/win32/sync/wait-functions

Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread Mattias Gaertner via fpc-pascal
On Tue, 5 Apr 2022 10:23:45 +0200 (CEST) Michael Van Canneyt via fpc-pascal 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 cou

Re: [fpc-pascal] RTLEventWaitFor

2022-04-05 Thread Michael Van Canneyt via fpc-pascal
On Tue, 5 Apr 2022, Mattias Gaertner via fpc-pascal wrote: Hi Michael, Under Linux a RTLEventWaitFor(e,1) usually waits at most 1ms. But under Windows it usually waits at least 15ms. It seems to round to nearest 1/64 of a second. Googling this lead me to question the sanity of some bloggers