21 queue.push_back(schedule);
27 bool is_cleanup =
false;
28 for (
auto &p_s :
queue) {
29 if (p_s ==
nullptr)
continue;
31 if (millis() >= s.
time) {
59 for (
auto it =
queue.begin(); it !=
queue.end(); ++it) {
61 if (!(p_rule)->active) {
Abstract Interface for UDP API.
Definition: IUDPService.h:34
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
Scheduler which processes all due Schedules (to send out UDP replies)
Definition: Scheduler.h:15
Vector< Schedule * > queue
Definition: Scheduler.h:56
void cleanup()
Definition: Scheduler.h:58
void execute(IUDPService &udp)
Execute all due schedules.
Definition: Scheduler.h:25
void add(Schedule *schedule)
Add a schedule to the scheduler.
Definition: Scheduler.h:18
Vector implementation which provides the most important methods as defined by std::vector....
Definition: Vector.h:21
Definition: Allocator.h:6
@ DlnaDebug
Definition: Logger.h:16
@ DlnaInfo
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5
An individual Schedule (to send out UDP messages)
Definition: Schedule.h:17
uint64_t end_time
Definition: Schedule.h:24
bool active
Definition: Schedule.h:26
virtual const char * name()
Definition: Schedule.h:30
virtual bool process(IUDPService &udp)
Definition: Schedule.h:28
uint64_t time
Definition: Schedule.h:20
uint32_t repeat_ms
Definition: Schedule.h:22