MCPcopy Create free account
hub / github.com/dobin/RedEdr / StartCleanupThread

Method StartCleanupThread

RedEdrShared/process_resolver.cpp:229–239  ·  view source on GitHub ↗

Cleanup thread management

Source from the content-addressed store, hash-verified

227
228// Cleanup thread management
229void ProcessResolver::StartCleanupThread(std::chrono::minutes interval) {
230 if (cleanupThreadRunning.load()) {
231 return; // Already running
232 }
233
234 cleanupInterval = interval;
235 cleanupThreadRunning = true;
236 cleanupThread = std::thread(&ProcessResolver::CleanupWorker, this);
237 LOG_A(LOG_DEBUG, "ProcessResolver: Started cleanup thread with %d minute interval",
238 static_cast<int>(interval.count()));
239}
240
241
242void ProcessResolver::StopCleanupThread() {

Callers 1

ManagerStartFunction · 0.80

Calls 2

countMethod · 0.80
LOG_AFunction · 0.50

Tested by

no test coverage detected