[fpc-pascal] lnet for TCP daemon

Henry Vermaak henry.vermaak at gmail.com
Wed Sep 18 13:55:39 CEST 2013


On Wed, Sep 18, 2013 at 01:26:46PM +0200, Marco van de Voort wrote:
> In our previous episode, Michael Schnell said:
> > > The fptimer unit implements a timer with a thread, but this forces the 
> > > use of threads on your application which is not always desirable.
> > 
> > Should be doable, as well. AFAIK, mse (for Linux) uses signals on that 
> > behalf. We might want to steal some ideas there.
> 
> While there is sigalarm, but can you have multiple independent timers in an
> application that way?

I think Martin used setitimer and handles multiple timers by calculating
which one expires first, and subtracting that amount from the other
timers, etc.

Henry



More information about the fpc-pascal mailing list