Fixing ConfigurationValidator to not crash.

This commit is contained in:
stephb9959
2021-10-30 15:30:49 -07:00
parent a8079b04c8
commit dc326ea00e
21 changed files with 619 additions and 73 deletions

37
src/JobController.cpp Normal file
View File

@@ -0,0 +1,37 @@
//
// Created by stephane bourque on 2021-10-28.
//
#include "JobController.h"
namespace OpenWifi {
void RegisterJobTypes();
int JobController::Start() {
RegisterJobTypes();
if(!Running_)
Thr_.start(*this);
return 0;
}
void JobController::Stop() {
if(Running_) {
Running_ = false;
Thr_.join();
}
}
void JobController::run() {
Running_ = true ;
while(Running_) {
Poco::Thread::trySleep(2000);
}
}
}