提取出 Data_Source_Handler
This commit is contained in:
@@ -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("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user