aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.98k stars 1.06k forks source link

Add missing lock for a cond var; add one more unit test #2708

Closed SergeyRyabinin closed 1 year ago

SergeyRyabinin commented 1 year ago

Issue #, if available: conditional variable :: notify all () must be called only under an acquired lock Description of changes: Add lock Also add unit test for ReaderWriterLock illustrating it is not broken in a heavy multi-threaded write-read. 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.