aboutsummaryrefslogtreecommitdiff
path: root/src/db.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-04-04 16:01:57 +0200
committerPieter Wuille <[email protected]>2012-04-04 17:24:13 +0200
commit092631f0ba0030dec1ccfa66e206fb2a6c9bf73b (patch)
treeb7e5a843ac4d215227b519efdd251d7b46fb13dc /src/db.cpp
parentLocking system overhaul, add condition variables (diff)
downloaddiscoin-092631f0ba0030dec1ccfa66e206fb2a6c9bf73b.tar.xz
discoin-092631f0ba0030dec1ccfa66e206fb2a6c9bf73b.zip
Condition variable for outbound connection slots
Keep a global counter for nOutbound, protected with its own waitable critical section, and wait when all outbound slots are filled, rather than polling. This removes the (on average) 1 second delay between a lost connection and a new connection attempt, and may speed up shutdowns.
Diffstat (limited to 'src/db.cpp')
0 files changed, 0 insertions, 0 deletions