AsyncBridge: Comment why we don't checkException in loop
This commit is contained in:
@@ -31,6 +31,16 @@ public:
|
|||||||
io_service.run_one();
|
io_service.run_one();
|
||||||
if (isAsyncOperationComplete.load() || io_service.stopped())
|
if (isAsyncOperationComplete.load() || io_service.stopped())
|
||||||
{ break; }
|
{ 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.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user