diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-03-09 12:02:57 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-04-03 19:57:53 -0400 |
commit | b31499ec72edd1554d4612d1b54808fce0360e14 (patch) | |
tree | a2d03852b9fd6e9595470210479f212ccf4313f1 /src/net.h | |
parent | 21eb5adadbe3110a8708f2570185566e1f137a49 (diff) |
Clean up shutdown process
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -40,7 +40,7 @@ CNode* ConnectNode(CAddress addrConnect, const char *strDest = NULL, int64 nTime void MapPort(bool fUseUPnP); unsigned short GetListenPort(); bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string())); -void StartNode(void* parg); +void StartNode(boost::thread_group& threadGroup); bool StopNode(); void SocketSendData(CNode *pnode); @@ -69,16 +69,9 @@ void SetReachable(enum Network net, bool fFlag = true); CAddress GetLocalAddress(const CNetAddr *paddrPeer = NULL); -/** Thread types */ -enum threadId -{ - THREAD_MAX -}; - extern bool fDiscover; extern uint64 nLocalServices; extern uint64 nLocalHostNonce; -extern boost::array<int, THREAD_MAX> vnThreadsRunning; extern CAddrMan addrman; extern std::vector<CNode*> vNodes; |