diff options
| author | Pieter Wuille <[email protected]> | 2012-04-04 16:01:57 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-04-04 17:24:13 +0200 |
| commit | 092631f0ba0030dec1ccfa66e206fb2a6c9bf73b (patch) | |
| tree | b7e5a843ac4d215227b519efdd251d7b46fb13dc /src/version.cpp | |
| parent | Locking system overhaul, add condition variables (diff) | |
| download | discoin-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/version.cpp')
0 files changed, 0 insertions, 0 deletions