diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-04 16:01:57 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-04 17:24:13 +0200 |
commit | 092631f0ba0030dec1ccfa66e206fb2a6c9bf73b (patch) | |
tree | b7e5a843ac4d215227b519efdd251d7b46fb13dc /src/crypter.cpp | |
parent | 712fd182b72b0f5a1bcf843f171c29ec0a49b50f (diff) |
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/crypter.cpp')
0 files changed, 0 insertions, 0 deletions