diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-03-06 22:16:05 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-04-03 14:04:21 -0400 |
commit | c8c2fbe07f1a5475aea3a2680af9130558c7e5c8 (patch) | |
tree | 78e8007fa6898d8f7f6826ab59c0bab8a4aae417 /src/init.h | |
parent | 87b9931bed5ec6633348ac506f0e9b5a96446df8 (diff) |
Shutdown cleanup prep-work
Create a boost::thread_group object at the qt/bitcoind main-loop level
that will hold pointers to all the main-loop threads.
This will replace the vnThreadsRunning[] array.
For testing, ported the BitcoinMiner threads to use its
own boost::thread_group.
Diffstat (limited to 'src/init.h')
-rw-r--r-- | src/init.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.h b/src/init.h index 8308ee648b..8986ff6208 100644 --- a/src/init.h +++ b/src/init.h @@ -7,11 +7,12 @@ #include "wallet.h" +class boost::thread_group; extern CWallet* pwalletMain; void StartShutdown(); void Shutdown(void* parg); -bool AppInit2(); +bool AppInit2(boost::thread_group& threadGroup); std::string HelpMessage(); #endif |