Closed msimberg closed 1 month ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: -0.10% (target: -1.00%) | :x: 0.00% (target: 90.00%) |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
Using a binary semaphore removes the need for keeping a mutex and atomic boolean alongside the condition variable. The lock and boolean are effectively moved inside the binary semaphore. As
sync_wait
is called rarely this is unlikely to actually improve performance, but if nothing else the version with a binary semaphore is noticeably simpler.