Merge pull request #18451 from soheilhy/atomic-fix

Fix a typo in CompareExchangeStrong()
pull/18462/head
Soheil Hassas Yeganeh 6 years ago committed by GitHub
commit f2529fee0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/gprpp/atomic.h

@ -58,7 +58,7 @@ class Atomic {
bool CompareExchangeStrong(T* expected, T desired, MemoryOrder success,
MemoryOrder failure) {
return GPR_ATM_INC_CAS_THEN(storage_.compare_exchange_weak(
return GPR_ATM_INC_CAS_THEN(storage_.compare_exchange_strong(
*expected, desired, static_cast<std::memory_order>(success),
static_cast<std::memory_order>(failure)));
}

Loading…
Cancel
Save