[Harbour-users] Telepathy TP_ONTIME / "function calling timer"
alternate implementations?
Danny
cyberdanny at tiscalinet.it
Thu Jan 28 06:29:19 EST 2010
smu johnson ha scritto:
> Hi,
>
> Has anyone found a replacement for Telepathy TP_ONTIME? (it just allows you
> to execute any function you want during any millisecond intervals.
> Unfortunately, the hbtpathy library has left this TP_ONTIME function out...
> I e-mailed the author of the Harbour contrib lib, but perhaps he never
> implemented this FUNC because it was not portable.
>
> I wouldn't want to write my own if I didn't have to, as I decided to ask
> here.
>
> I read some other threads on the mailing list and someone mentioned to check
> out another thread on multithreading. It was a bit too high-brow for me, as
> well as not really answering this (and the original posters) question. In a
> nutshell, I'm looking to implement a simple feature that Telepathy provided
> in the DOS days.
>
> As always, any hints highly appreciated. Thank you for reading
>
>
I'm not sure about those instructions, but here they are:
HB_IdleAdd() : Adds a background task for being executed during idle states
HB_IdleDel() Removes a task from the list of idle tasks.
HB_IdleState() Signals an idle state.
HB_IdleSleepMSec() Queries or changes the default time interval for idle
task processing.
HB_BackGroundAdd() Adds a new background task.
HB_BackGroundRun() : Enforces execution of one or all background tasks
HB_BackGroundActive() Queries and/or changes the activity of a single
background task.
HB_BackGroundDel() Removes a background task from the internal task list.
HB_BackGroundReset() Resets the internal counter of background tasks.
HB_BackGroundTime() Queries or changes the wait interval in milliseconds
after which the task is executed.
StartThread() Starts a new thread.
HTH
Dan
More information about the Harbour-users
mailing list