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

EventLoop没办法正常退出 #37

Closed
TgeaUs opened this issue Jul 5, 2023 · 1 comment
Closed

EventLoop没办法正常退出 #37

TgeaUs opened this issue Jul 5, 2023 · 1 comment

Comments

@TgeaUs
Copy link

TgeaUs commented Jul 5, 2023

硕哥,eventloop没办法正常退出。如果退出太快的话,EventLoop::quit()执行了,但是EventLoop::loop()读取的quit_还是true

例子:https://github.com/chenshuo/recipes/blob/master/reactor/s03/test6.cc

我的例子:

    EventLoopThread loopThread;
    EventLoop* loop = loopThread.startLoop();

    loop->quit();
    
    printf("exit main().\n");

image

@TgeaUs
Copy link
Author

TgeaUs commented Jul 5, 2023

不好意思,查错了issue,已经有人提了 #601

@TgeaUs TgeaUs closed this as completed Jul 5, 2023
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