You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
看了代码中有很多volatile修饰的变量,目的是什么,为了statistics更加准确以及为了使用sofa-pbrpc中提供的原子操作吗?
代码中有这样的注释:
// And here we need not lock "_pending_lock" because the "_pending_message_count" is
// an volatile value.
请教一下volatile与锁有关系吗?
The text was updated successfully, but these errors were encountered:
看了代码中有很多volatile修饰的变量,目的是什么,为了statistics更加准确以及为了使用sofa-pbrpc中提供的原子操作吗?
代码中有这样的注释:
// And here we need not lock "_pending_lock" because the "_pending_message_count" is
// an volatile value.
请教一下volatile与锁有关系吗?
The text was updated successfully, but these errors were encountered: