![]() | ![]() | ![]() | Scheduled and Periodic Functions | ![]() |
GBBopen provides two forms of time-scheduled functions:
scheduled functions and periodic functions, both built using
Portable Threads. These
time-scheduled-function entities are provided by the
:portable-threads
A scheduled function is an object that contains a function to be run at a specified time. When that specified time arrives, the function is invoked with a single argument: the scheduled function object. A repeat interval (in seconds) can also be specified for the scheduled function. This value is used whenever the scheduled function is invoked to schedule itself again at a new time relative to the current invocation. Scheduled functions can be scheduled to a resolution of one second.
Scheduled functions are scheduled and invoked by a separate
"Scheduled-Function Scheduler"
A periodic function is a function to be run repeatedly at a
specified interval. Unlike scheduled functions, which can be
scheduled only to a resolution of one second, a periodic function can
be repeated at intervals as brief as is supported by the sleep
Entities
The GBBopen Project
![]() | ![]() | ![]() | Scheduled and Periodic Functions | ![]() |