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

axns 模块的 thread_local 有指针浅拷贝问题 #39

Open
chy669086 opened this issue Jan 17, 2025 · 0 comments
Open

axns 模块的 thread_local 有指针浅拷贝问题 #39

chy669086 opened this issue Jan 17, 2025 · 0 comments

Comments

@chy669086
Copy link

axns 开启 thread_local feature 之后,每次调用 new_thread_local 函数应该创建一个属于这个名称空间的独立的资源库,但是由于这个函数直接对内存进行了拷贝,而 AxResource 内部又是以 Arc 进行的存储,导致所有的 namespace 其实都指向了同一个位置,并没有达到 "Each thread can have its own namespace" 的目的。

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