job scheduler works with run once and run periodic schedules. Stop logic is not fully thought through.

Dependencies:   LinkedList

Dependents:   JobSchedulerDemo Borsch

Revision:
16:f61b62b119dd
Parent:
15:6b8fa5dff770
Child:
17:3b565ccd291b
--- a/scheduler.cpp	Wed Aug 02 22:03:50 2017 +0000
+++ b/scheduler.cpp	Thu Aug 03 00:00:13 2017 +0000
@@ -16,8 +16,8 @@
     {
         time_t t1 = a1->GetTime();
         time_t t2 = a2->GetTime();
-        bool rv = t1 <= t2;
-        tr_debug("apt %d:%d <= %d:%d is %d)", a1->GetJob()->GetID(), t1, a2->GetJob()->GetID(), t2, rv);
+        bool rv = t1 >= t2;
+        tr_debug("apt %d:%d >= %d:%d is %d)", a1->GetJob()->GetID(), t1, a2->GetJob()->GetID(), t2, rv);
         return rv;
     };