Skip to content

Commit 63b6023

Browse files
committed
adding readerlock wrapper
1 parent 8108a29 commit 63b6023

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/aws-cpp-sdk-core/include/aws/core/internal/RetryStrategyImpl.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ namespace Aws
6262
ReleaseRetryQuota(capacityAmount);
6363
}
6464

65-
int GetRetryQuota() const override { return m_retryQuota; }
65+
int GetRetryQuota() const override
66+
{
67+
Aws::Utils::Threading::ReaderLockGuard guard(m_retryQuotaLock);
68+
return m_retryQuota;
69+
}
6670

6771
private:
6872
QuotaConfig m_config;

0 commit comments

Comments
 (0)