CompThr: Comment on posted CBs
This commit is contained in:
@@ -119,7 +119,14 @@ public:
|
||||
|
||||
void callOriginalCbFn(void)
|
||||
{
|
||||
if (originalCbFn) {
|
||||
if (originalCbFn)
|
||||
{
|
||||
/** EXPLANATION:
|
||||
* This is only permissible because originalCbFn doesn't take any
|
||||
* further arguments. If we had to bind argument to it before
|
||||
* posting it, we'd have to std::bind them and then post the
|
||||
* resulting function object.
|
||||
*/
|
||||
caller->getIoService().post(originalCbFn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user