Class sh::ui::web::WebServerEngineDispatcher::JanitorThreadΒΆ

class sh::ui::web::WebServerEngineDispatcher::JanitorThread : public QThread

Public Functions

JanitorThread(WebServerEngineDispatcher *dispatcher)
void run() override

Private Functions

qint64 machineMemory()

Returns the amount of memory this machine provides (in bytes).

Returns -1 if this is not supported on the target platform or it failed.

void stopWorker(WorkerProcess *worker, QString reason)
int detectGoodMaxNumberWorkersByMachineCapabilities()
QList<WorkerProcess*> stopWorkers(QList<WorkerProcess*> workers, int stopcount, QString reason)

Private Members

WebServerEngineDispatcher *_dispatcher
double _allMemory
QHash<WorkerProcess*, double> _workerMemoryUsagesLastSeconds