summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-05 12:41:14 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-05 12:41:14 -0800
commit3e22fee84290c859a13186e6e485b02b33305618 (patch)
tree3ac45d425822924163766966aa7e98b6b3056dd3 /service
parent5ec5911e1bbed6e0dfd649f78b6b38afd181b5f1 (diff)
downloadinfinitytier-3e22fee84290c859a13186e6e485b02b33305618.tar.gz
infinitytier-3e22fee84290c859a13186e6e485b02b33305618.zip
Integrate deferred background processing into main OneService implementation.
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 8c8ff1ed..e0ead047 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -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;