[fpc-pascal] TFPTimer wtih timer_create

Michael Van Canneyt michael at freepascal.org
Sat Mar 5 19:34:09 CET 2016



On Sat, 5 Mar 2016, Fabio Luis Girardi wrote:

> Hi all!
>
> I'm searching a way to implement a TFPTimer that don't uses threads. On
> Linux and FreeBSD I found the timer_create and family functions. My
> question is: What these functions has wrong?

Nothing except that they are not cross platform.

> Or the use of these functions should be avoided? Or because simply nobody
> want to do that?

No, a unix-only TFPTimer driver using these functions can be implemented if you so wish it.

I would definitely accept patches for it.

Michael.



More information about the fpc-pascal mailing list