X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FFIFORunner.hh;h=39e2e3a6a8801d4ce5a163aa4df6347395008b84;hb=92f8630b75f3ef50e73c48cde58645dcd1534e27;hp=11ab3ee737e24365a30114fb54929da2f43de862;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Scheduler/FIFORunner.hh b/Scheduler/FIFORunner.hh index 11ab3ee..39e2e3a 100644 --- a/Scheduler/FIFORunner.hh +++ b/Scheduler/FIFORunner.hh @@ -99,8 +99,13 @@ namespace detail { void taskTimeout(unsigned ms); unsigned taskTimeout() const; + void abortOnTimeout(bool flag); + bool abortOnTimeout() const; - unsigned hangCount() const; + void startWatchdog(); + void stopWatchdog(); + + unsigned hangCount(); iterator begin() const; iterator end() const; @@ -132,7 +137,9 @@ namespace detail { NullTask highPriorityEnd_; timer_t watchdogId_; + bool watchdogRunning_; unsigned watchdogMs_; + bool watchdogAbort_; std::string runningName_; # ifdef SENF_DEBUG std::string runningBacktrace_;