Integrate deferred background processing into main OneService implementation.

This commit is contained in:
Adam Ierymenko 2015-11-05 12:41:14 -08:00
parent 5ec5911e1b
commit 3e22fee842
2 changed files with 12 additions and 0 deletions

View file

@ -656,6 +656,10 @@ public:
}
}
// Start two background threads to handle expensive ops out of line
Thread::start(_node);
Thread::start(_node);
_nextBackgroundTaskDeadline = 0;
uint64_t clockShouldBe = OSUtils::now();
_lastRestart = clockShouldBe;