aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/compactbinaryjson.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-29 09:35:25 +0100
committerGitHub Enterprise <[email protected]>2025-10-29 09:35:25 +0100
commit2e293bbbf17639471d6d570212a09d097801da66 (patch)
tree1eb3d7e53952aee2ec8b3a2a43b839f3594de392 /src/zencore/compactbinaryjson.cpp
parentfix --zentrace=no compile errors (#616) (diff)
downloadzen-2e293bbbf17639471d6d570212a09d097801da66.tar.xz
zen-2e293bbbf17639471d6d570212a09d097801da66.zip
fix for Latch race (#617)
Because the counter is decreased in `CountDown()` and subsequently checked against zero to determine if the completion event should be set: `Latch::Wait` checks the counter against zero on entry and would exit early, before waiting on the completion event. This could then lead to the `Latch` instance being torn down before the `CountDown()` does a `Set()` which could then lead to unexpected and unwanted things happening.
Diffstat (limited to 'src/zencore/compactbinaryjson.cpp')
0 files changed, 0 insertions, 0 deletions