Skip to content

Commit

Permalink
fix comment error
Browse files Browse the repository at this point in the history
  • Loading branch information
mark committed Jan 5, 2017
1 parent 98e027a commit e7ea913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muduo/base/Atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AtomicIntegerT : boost::noncopyable

T getAndSet(T newValue)
{
// in gcc >= 4.7: __atomic_store_n(&value, newValue, __ATOMIC_SEQ_CST)
// in gcc >= 4.7: __atomic_exchange_n(&value, newValue, __ATOMIC_SEQ_CST)
return __sync_lock_test_and_set(&value_, newValue);
}

Expand Down

0 comments on commit e7ea913

Please sign in to comment.