#include <Scheduler.h>
Public Member Functions | |
| Scheduler (int starting_size=64, int adding_size=64) | |
| ~Scheduler () | |
| void | add_event (unsigned int time, char *action) |
| void | add_events (unsigned int *times, char **actions, int num_events) |
| void | go () |
| void | stop () |
| bool | is_running () |
| unsigned int | current_time () |
| int | resolution () |
Private Member Functions | |
| int | _find_free_space () |
Private Attributes | |
| SchedulerEvent * | events |
| SchedulerEvent * | next_event |
| SchedulerEvent * | last_event |
| bool * | space_free |
| int | allocated_spaces |
| int | filled_spaces |
| int | first_free_space |
| int | new_chunk_size |
| volatile bool | running |
| volatile unsigned int | earliest_possible_event_time |
| int | dawn_of_time |
| int unsigned | now |
| volatile int | now_precision |
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5-20051010