17 #ifndef HEADER_SUPERTUX_SQUIRREL_SQUIRREL_SCHEDULER_HPP 18 #define HEADER_SUPERTUX_SQUIRREL_SQUIRREL_SCHEDULER_HPP 35 void schedule_thread(HSQUIRRELVM vm,
float time);
38 struct ScheduleEntry {
44 bool operator<(
const ScheduleEntry& other)
const 47 return wakeup_time > other.wakeup_time;
54 typedef std::vector<ScheduleEntry> ScheduleHeap;
55 ScheduleHeap schedule;
void update(float time)
time must be absolute time, not relative updates, i.e.
Definition: squirrel_scheduler.cpp:32
This class keeps a list of squirrel threads that are scheduled for a certain time.
Definition: squirrel_scheduler.hpp:28
Basic wrapper around HSQUIRRELVM with some utility functions, not to be confused with SquirrelVirtual...
Definition: squirrel_vm.hpp:29