Recent

Author Topic: How to get timers working on Linux Daemon  (Read 883 times)

RynoYssel

  • Newbie
  • Posts: 2
How to get timers working on Linux Daemon
« on: January 28, 2020, 03:38:29 pm »
Hi All,

We are looking for help to get timers working on a Linux Daemon.

We don't know where to put the "CheckSyncronize" into the main Daemon thread, because without "CheckSyncronize" the timer does not fire.

Is there anyone that got this to work? If so can you please advise how to get it working.

Thank you in advance.

Renat.Su

  • Full Member
  • ***
  • Posts: 181
    • Renat.Su
Re: How to get timers working on Linux Daemon
« Reply #1 on: January 28, 2020, 08:55:12 pm »
Doesn't TFPTimer work for Linux daemons?
In General I use the PRTLEvent variables in the TThread class in daemons for timing like
Code: Pascal  [Select][+][-]
  1. RTLeventWaitFor(aEvent, aDelayInMSec);

RynoYssel

  • Newbie
  • Posts: 2
Re: How to get timers working on Linux Daemon
« Reply #2 on: January 30, 2020, 07:53:31 am »
Hi Renat,

Thank you for your response. We were actually using TTimer instead of TFPTimer.

It is working perfectly now.

 

TinyPortal © 2005-2018