#include <list.h>
#include <scheduler.h>
Go to the source code of this file.
Data Structures | |
struct | Timer |
Defines | |
#define | TIMER_HZ 100 |
Functions | |
int | timer_initialize (void) |
Initialize timer facilities. | |
unsigned int | get_ticks (void) |
The number of ticks since boot. | |
Timer * | timer_create (unsigned int delta) |
Create a new timer. | |
void | timer_activate (Timer *timer) |
Activate a timer. | |
void | timer_destroy (Timer *timer) |
Destroy a timer. |
Provides the interface for simple deadline timers.
|
The number of ticks since boot. Return the number of ticks elapsed since initializing the timer.
|
|
Activate a timer. Install the timer so that it will expire at its deadline.
|
|
Create a new timer. Create a new timer to expire a certain number of ticks from now. The timer must be activated after threads have been suspended on the resource before it will wait for expiration.
|
|
Destroy a timer. Free any memory resources associated with a timer.
|
|
Initialize timer facilities. Initialize the timer facilities and start up the timer.
|