[fpc-pascal] Timer in X11

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Dec 21 19:29:00 CET 2011


On Wed, Dec 21, 2011 at 6:24 PM, Henry Vermaak <henry.vermaak at gmail.com> wrote:
> select() on linux will actually modify the timeout (fpc overloads select(),
> but presumably this will still happen when you use ptimeval for the
> timeout).  You shouldn't rely on this, though, read the man page for more
> info.  This is what Mark was trying to say in his reply to your original
> message.

Ummm, that's quite interresting, I hadn't understood in the first time
as I hadn't yet experience with select. Looks like a possibility for
Linux until a GetMilisecondsCount is implemented.

> Perhaps it's better to implement a thread based timer?

Not for LCL-CustomDrawn-X11, I think what is being achieved is already
a good base, it only needs to be improved. Threads will probably bring
more problems then solve.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list