You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The virtual ProcessMessage function in IWorker takes four arguments, the final two with default nullptr values to allow it to be called with only the first two, the inputs only. Currently the only place to handle processed data returned from ProcessMessage is in the operator() loop function. For a user to make use of this it would require overloading the loop itself.
Rewrite the loop function in IWorker to check for those additional output arguments and process them according to user specifications, possibly via addition of another virtual function such as ProcessResult.
There may be an easier way to create this functionality using multiple workers/queues. Part of ProcessMessage could obviously simply be to submit the result to another queue or IWorker. Choose whichever is best and implement it.
The text was updated successfully, but these errors were encountered:
The virtual
ProcessMessage
function inIWorker
takes four arguments, the final two with defaultnullptr
values to allow it to be called with only the first two, the inputs only. Currently the only place to handle processed data returned fromProcessMessage
is in theoperator()
loop function. For a user to make use of this it would require overloading the loop itself.Rewrite the loop function in
IWorker
to check for those additional output arguments and process them according to user specifications, possibly via addition of another virtual function such asProcessResult
.There may be an easier way to create this functionality using multiple workers/queues. Part of
ProcessMessage
could obviously simply be to submit the result to another queue orIWorker
. Choose whichever is best and implement it.The text was updated successfully, but these errors were encountered: