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

[fpc-pascal] RTLEventWaitFor

2022-04-04 Thread Mattias Gaertner via fpc-pascal
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. Has anyone an idea if this is normal on Windows and if there i

Re: [fpc-pascal] RTLeventWaitFor Timeout

2015-05-19 Thread Dimitrios Chr. Ioannidis
On 19-05-2015 12:31, Michael Van Canneyt wrote: On Tue, 19 May 2015, Dimitrios Chr. Ioannidis wrote: Hi all, As I read that the TEvent is using obsolete functions I switched to RTLEvent. Now the RTLeventWaitFor has a TimeOut parameter declared as longint but in synobjs the INFINITE is Cardi

Re: [fpc-pascal] RTLeventWaitFor Timeout

2015-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2015, Dimitrios Chr. Ioannidis wrote: Hi all, As I read that the TEvent is using obsolete functions I switched to RTLEvent. Now the RTLeventWaitFor has a TimeOut parameter declared as longint but in synobjs the INFINITE is Cardinal. There is no reason to abandon TEvent ?

[fpc-pascal] RTLeventWaitFor Timeout

2015-05-19 Thread Dimitrios Chr. Ioannidis
Hi all, As I read that the TEvent is using obsolete functions I switched to RTLEvent. Now the RTLeventWaitFor has a TimeOut parameter declared as longint but in synobjs the INFINITE is Cardinal. Is there a definition of INFINITE constant somewhere else defined as Cardinal ? Regards,