From 9455b1cc810eff7517f51f50eee828344af3526a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 6 Nov 2013 10:38:19 -0500 Subject: Comments, change .nfo to .sig for uploads, clean some unused code from Utils. --- node/RuntimeEnvironment.hpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'node/RuntimeEnvironment.hpp') diff --git a/node/RuntimeEnvironment.hpp b/node/RuntimeEnvironment.hpp index 4baaab6b..75b171ff 100644 --- a/node/RuntimeEnvironment.hpp +++ b/node/RuntimeEnvironment.hpp @@ -80,23 +80,28 @@ public: { } - // home of saved state, identity, etc. + // Full path to home folder std::string homePath; - // signal() to prematurely interrupt main loop wait to cause loop to run - // again and detect some kind of change, exit, etc. + // Main loop waits on this condition when it delays between runs, so + // signaling this will prematurely wake it. Condition mainLoopWaitCondition; + // This node's identity Identity identity; - // hacky... want to get rid of this flag... + // Indicates that we are shutting down -- this is hacky, want to factor out volatile bool shutdownInProgress; - // Order matters a bit here. These are constructed in this order - // and then deleted in the opposite order on Node exit. The order ensures - // that things that are needed are there before they're needed. + /* + * Order matters a bit here. These are constructed in this order + * and then deleted in the opposite order on Node exit. The order ensures + * that things that are needed are there before they're needed. + * + * These are constant and never null after startup unless indicated. + */ - Logger *log; // may be null + Logger *log; // null if logging is disabled CMWC4096 *prng; Multicaster *mc; Switch *sw; @@ -105,9 +110,9 @@ public: SysEnv *sysEnv; NodeConfig *nc; Node *node; - Updater *updater; // may be null if updates are disabled + Updater *updater; // null if auto-updates are disabled #ifndef __WINDOWS__ - Service *netconfService; // may be null + Service *netconfService; // null if no netconf service running #endif }; -- cgit v1.2.3