aboutsummaryrefslogtreecommitdiff
path: root/net.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-09-09 01:00:40 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-09-09 01:00:40 +0000
commit7629d36a530087806e80ed3c5866e8ec64319828 (patch)
treeb695b16d4da6641737273ce0fb9ac5ba36b72d9c /net.cpp
parent3f647537790e02e892701f4bb2586ccd964c2631 (diff)
try to auto-detect whether to use 128-bit 4-way SSE2
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@150 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.cpp b/net.cpp
index 1a64a82c14..82b3ffb157 100644
--- a/net.cpp
+++ b/net.cpp
@@ -1160,7 +1160,9 @@ void ThreadMessageHandler2(void* parg)
pnode->Release();
}
- // Wait and allow messages to bunch up
+ // Wait and allow messages to bunch up.
+ // Reduce vnThreadsRunning so StopNode has permission to exit while
+ // we're sleeping, but we must always check fShutdown after doing this.
vnThreadsRunning[2]--;
Sleep(100);
if (fRequestShutdown)