diff options
| author | Stefan Boberg <[email protected]> | 2025-10-29 09:35:25 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-29 09:35:25 +0100 |
| commit | 2e293bbbf17639471d6d570212a09d097801da66 (patch) | |
| tree | 1eb3d7e53952aee2ec8b3a2a43b839f3594de392 /src/zencore/commandline.cpp | |
| parent | fix --zentrace=no compile errors (#616) (diff) | |
| download | zen-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/commandline.cpp')
0 files changed, 0 insertions, 0 deletions