aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.91k stars 1.04k forks source link

Re-add #6e8ae64 Avoid concurrent writes in TestingMonitoring #2980

Closed SergeyRyabinin closed 4 weeks ago

SergeyRyabinin commented 4 weeks ago

that accidentally got reverted

Issue #, if available: race condition in testing monitor

Description of changes: Just add a mutex lock.

First fixed in: https://github.com/aws/aws-sdk-cpp/pull/2523 Then accidentally reverted in: https://github.com/aws/aws-sdk-cpp/pull/2930/commits/0b850a96a6f4e762a0f64f23ff7e6e434d1803e8 Check all that applies:

Check which platforms you have built SDK on to verify the correctness of this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.