File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,12 @@ void ScheduleTable::stop()
157
157
mState = SCHEDULETABLE_STOPPED;
158
158
}
159
159
160
+ /* Return true if the schedule table is started */
161
+ bool ScheduleTable::isRunning () const
162
+ {
163
+ return (SCHEDULETABLE_STOPPED != mState );
164
+ }
165
+
160
166
/*
161
167
* Change the period of the schedule table
162
168
* Fail silently if period is lower than 1 or greater than
Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ class ScheduleTable
170
170
void start (unsigned int howMuch = 0 );
171
171
/* Stop the schedule table */
172
172
void stop ();
173
+ /* Return true if the schedule table is started */
174
+ bool isRunning () const ;
173
175
/* Set the period of the schedule table */
174
176
void setPeriod (unsigned int period);
175
177
/* Remove all the actions from the schedule table */
You can’t perform that action at this time.
0 commit comments