提取出 Data_Source_Handler

This commit is contained in:
2026-06-23 14:01:23 +08:00
parent 8ca05115ec
commit afd4bf8e69
8 changed files with 380 additions and 389 deletions
@@ -226,6 +226,16 @@ ucoro::awaitable<void> data_feed_thread_coro(std::atomic<bool>& running) {
}
void data_feed_thread(std::atomic<bool>& running) {
ucoro::sync_await(data_feed_thread_coro(running));
try {
ucoro::sync_await(data_feed_thread_coro(running));
} catch (const std::exception& e) {
std::cerr << "data_feed_thread_coro exception: " << e.what() << std::endl;
Psc::fail_fast_core_dump("");
} catch (...) {
std::cerr << "data_feed_thread_coro unknown exception" << std::endl;
Psc::fail_fast_core_dump("");
}
}