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

能否将这个 executor_detect_flag 变量作为 CallbackAwaiter 类的成员变量? #32

Closed
Jackarain opened this issue Oct 16, 2024 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Jackarain
Copy link
Member

Jackarain commented Oct 16, 2024

auto executor_detect_flag = std::make_shared<std::atomic_flag>();

我们是否能将这个 executor_detect_flag 变量作为 CallbackAwaiter 类的成员变量,如果可以,这样我们可以不使用 shared_ptr,如果不可以,请 @microcai 说明这样设计的理由,谢谢。

@Jackarain Jackarain added help wanted Extra attention is needed question Further information is requested labels Oct 16, 2024
@microcai
Copy link
Member

可以的。但是遇到了严重的问题。暂时解决不了。诶。

@Jackarain
Copy link
Member Author

可以的。但是遇到了严重的问题。暂时解决不了。诶。

什么严重的问题,能否描述一下?

@microcai
Copy link
Member

@Jackarain 就是不知道为何,跑着跑着,executor_detect_flag 的初始值就变成了 true

@Jackarain
Copy link
Member Author

此问题已经解决:#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants