You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "dwdw666 (via GitHub)" <gi...@apache.org> on 2023/06/12 07:31:45 UTC

[GitHub] [rocketmq] dwdw666 created a discussion: ThreadLocalIndex

GitHub user dwdw666 created a discussion: ThreadLocalIndex

我在阅读源码的时候发现 `sendWhichQueue` 用 volatile 修饰,我不知道这是否是必要的。
``` java
public class TopicPublishInfo {
        private volatile ThreadLocalIndex sendWhichQueue = new ThreadLocalIndex();
}
```

GitHub link: https://github.com/apache/rocketmq/discussions/6890

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org