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

有考虑并发安全码? #19

Open
ekuwang opened this issue May 23, 2024 · 1 comment
Open

有考虑并发安全码? #19

ekuwang opened this issue May 23, 2024 · 1 comment

Comments

@ekuwang
Copy link

ekuwang commented May 23, 2024

我在代码中看到有些地方考虑了并发安全,有些地方则似乎是并发不安全的。不过我自己对并发安全也不太熟悉,怕没有领会作者的编码意图,所以想确认一下作者是否已经完全考虑了并发安全问题?还是说确实存在部分代码没有做到并发安全?

@ekuwang
Copy link
Author

ekuwang commented May 23, 2024

我试举一例,internal/game包中的Manager类型的players字段好像不是并发安全的,存在隐患。不知道我的判断对不对?

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

1 participant