Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

determineAdmin是否是线程安全的 #3

Open
hanlipeng opened this issue Jul 21, 2021 · 1 comment
Open

determineAdmin是否是线程安全的 #3

hanlipeng opened this issue Jul 21, 2021 · 1 comment

Comments

@hanlipeng
Copy link

为了提速.我这写了多线程..但是源码是scala写的..看不太懂..不确定是不是线程安全.在这问下.

@deng0515001
Copy link
Owner

使用时先调用init,则使用过程中是安全的,因为整个过程没有写操作,只有读操作。
如果使用懒加载,则不是安全的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants