From 7b830f0a68946b888a077c6833017855dbd0fed7 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Fri, 31 Oct 2025 07:59:23 -0400 Subject: [PATCH] AsyncBridge: Comment why we don't checkException in loop --- include/asynchronousBridge.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/asynchronousBridge.h b/include/asynchronousBridge.h index fcaa576..6db95fc 100644 --- a/include/asynchronousBridge.h +++ b/include/asynchronousBridge.h @@ -31,6 +31,16 @@ public: io_service.run_one(); if (isAsyncOperationComplete.load() || io_service.stopped()) { break; } + + /** EXPLANATION: + * In the mrntt and mind thread loops we call checkException() after + * run() returns, but we don't have to do that here because + * setException() calls stop. + * + * So if an exception is set on our thread, we'll break out of this + * loop due to the check for stopped() above, and that'll take us + * back out to the main loop, where we'll catch the exception. + */ } }