aboutsummaryrefslogtreecommitdiff
path: root/src/.clang-format
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-12-31 02:05:26 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-01-12 23:05:24 -0500
commitc5a8b1b946b1ab0bb82bd4270b2a40f5731abcff (patch)
treea1ee1e54db0ae10d0641c2a6c1ff5189125cb681 /src/.clang-format
parentc72cc88ed39652e44b5be48e9455f6f395bd7e83 (diff)
net: rework the way that the messagehandler sleeps
In order to sleep accurately, the message handler needs to know if _any_ node has more processing that it should do before the entire thread sleeps. Rather than returning a value that represents whether ProcessMessages encountered a message that should trigger a disconnnect, interpret the return value as whether or not that node has more work to do. Also, use a global fProcessWake value that can be set by other threads, which takes precedence (for one cycle) over the messagehandler's decision. Note that the previous behavior was to only process one message per loop (except in the case of a bad checksum or invalid header). That was changed in PR #3180. The only change here in that regard is that the current node now falls to the back of the processing queue for the bad checksum/invalid header cases.
Diffstat (limited to 'src/.clang-format')
0 files changed, 0 insertions, 0 deletions