upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/proxy.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-08-23 11:48:56 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-08-23 11:48:56 +0000
commita5300386813937e38810a86153811941047ea578 (patch)
tree41255bb7e92794bc0f94f13f31936823e6edd098 /src/proxy.cpp
parentc7ada00eeed8ef689b976c7201db2d9c076c17d1 (diff)
payout: take the mutex that guards the in-flight list while loading it
LoadPaying appends to gPaying and increments gPayingNextId, and both are annotated as guarded by gPayoutExecMutex. It took neither. Nothing is racing it today: it is called from the pool startup path before the payout thread is spawned, and the self-test calls it on one thread. But that is a fact about its callers, not about the function, and the annotation is what the next person to add a caller will read. The lock is uncontended here by construction, so there is nothing to weigh against taking it. Property: every mutation of gPaying and gPayingNextId in this file happens under the mutex they are documented to be guarded by.
Diffstat (limited to 'src/proxy.cpp')
0 files changed, 0 insertions, 0 deletions