Replies: 1 comment 1 reply
-
|
因为没法优雅且安全地停 worker和消费完所有 bthread,所以 我之前做过优雅退出相关工作,还需要修改TaskControl/TaskGroup,最后的实现不优雅,没法覆盖一些 corner case。#1889 (comment) 有一些讨论。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
针对 EventDispatcher 线程,注册了 atexit 函数 StopAndJoinGlobalDispatcher. 那么为什么不针对全局的 TaskControl 也处理一下呢?
我看到了有一个函数
bthread_stop_world就是用来做这个事情的,也可以将它注册进 atexit 的吧。当前没有这样做的原因是啥呢?Beta Was this translation helpful? Give feedback.
All reactions