#include <timer.h>
Inherits List_node.
Inheritance diagram for Timer_callback:


Public Member Functions | |
| void | init (Timer_callback_func callback_function) |
| void | print () |
Public Attributes | |
| Timer_callback_func | function |
| unsigned | period |
| unsigned | call_time |
| unsigned | cycles |
| void * | argument |
| bool | scheduled |
Every certain number of milliseconds, the timer invokes the callback.
This is useful for scheduling some sort of event that needs to happen a short time from now, without having to stop and wait until then. If the event only needs to happen once, then part of the event's callback function can involve unscheduling any further invocations of that event.
|
|
|
|
|
Print basic information about this timer callback.
|
|
|
argument supplied to the function
|
|
|
time callback will be invoked
|
|
|
number of periods completed
|
|
|
the actual callback function
|
|
|
milliseconds between invocations
|
|
|
whether this callback is scheduled
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman