We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if (policy == null) { lock (this)//因为Invoke可能是并发调用,因此要确保policy赋值的线程安全 { if (policy == null) { ... } } }
The text was updated successfully, but these errors were encountered:
嗯,闻到了坏代码的味道,来看了下,果然有哥们已经指出来了
Sorry, something went wrong.
谢谢。lock (policies)外面已经加锁了
已经lock(policies)了,就用不着加双if了。
No branches or pull requests
The text was updated successfully, but these errors were encountered: