use acquire instead of relaxed in IdleTimerCallback()

pull/19992/head
Qiancheng Zhao 5 years ago
parent ba4fca6bc8
commit e45bea777e
  1. 2
      src/core/ext/filters/client_idle/client_idle_filter.cc

@ -320,7 +320,7 @@ void ChannelData::IdleTimerCallback(void* arg, grpc_error* error) {
// EnterIdle() operation finishes, preventing mistakenly entering IDLE
// when active RPC exists.
finished = chand->state_.CompareExchangeWeak(
&state, PROCESSING, MemoryOrder::RELAXED, MemoryOrder::RELAXED);
&state, PROCESSING, MemoryOrder::ACQUIRE, MemoryOrder::RELAXED);
if (finished) {
chand->EnterIdle();
chand->state_.Store(IDLE, MemoryOrder::RELAXED);

Loading…
Cancel
Save