diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-05 12:41:14 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-05 12:41:14 -0800 |
commit | 3e22fee84290c859a13186e6e485b02b33305618 (patch) | |
tree | 3ac45d425822924163766966aa7e98b6b3056dd3 /node | |
parent | 5ec5911e1bbed6e0dfd649f78b6b38afd181b5f1 (diff) | |
download | infinitytier-3e22fee84290c859a13186e6e485b02b33305618.tar.gz infinitytier-3e22fee84290c859a13186e6e485b02b33305618.zip |
Integrate deferred background processing into main OneService implementation.
Diffstat (limited to 'node')
-rw-r--r-- | node/Node.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index 800c0a55..76dec50e 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -130,6 +130,14 @@ public: // Internal functions ------------------------------------------------------ /** + * Convenience threadMain() for easy background thread launch + * + * This allows background threads to be launched with Thread::start + * that will run against this node. + */ + inline void threadMain() throw() { this->backgroundThreadMain(); } + + /** * @return Time as of last call to run() */ inline uint64_t now() const throw() { return _now; } |