aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorKaz Wesley <keziahw@gmail.com>2016-04-26 17:21:22 -0700
committerKaz Wesley <keziahw@gmail.com>2016-06-04 22:18:59 -0700
commitf0fdda0181e1b05b66541bf235c6702c41664170 (patch)
treee6f288bd9315bae11b257886d7eae8ac832065c3 /src/rpc/server.h
parent3b9a0bf41f2336b09e854522ab1ce6dcfc7a3050 (diff)
IsInitialBlockDownload: usually avoid locking
Optimistically test the latch bool before taking the lock. For all IsInitialBlockDownload calls after the first to return false, this avoids the need to lock cs_main.
Diffstat (limited to 'src/rpc/server.h')
0 files changed, 0 insertions, 0 deletions