-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK] Avoid missing conditional variable update and simplify atomic b…
…ool (#2553) Addresses two issues - 1. Fix the use of a conditional variable where a wait on the variable might not be in flight when a notify is called. This is fixed by ensuring that an associated lock is aquired before calling the notify. 2. Instead of relying on a lock an a boolean, replace the use wit a single atomic boolean. --------- Co-authored-by: Ehsan Saei <71217171+esigo@users.noreply.github.com> Co-authored-by: Marc Alff <marc.alff@oracle.com> Co-authored-by: Marc Alff <marc.alff@free.fr>
- Loading branch information
1 parent
da8e377
commit 4f32bc6
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4f32bc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_NaiveSpinLockThrashing/2/process_time/real_time
0.481207878581023
ms/iter0.16919820230277244
ms/iter2.84
This comment was automatically generated by workflow using github-action-benchmark.