Minion object that requests a job, computes the result, then submits that result to the connected worker. More...
#include <minion.hpp>
Public Member Functions | |
Minion (Worker &w, uint jobID) | |
Create a new a minion. More... | |
JobData | nextJob () |
Gets a job from the worker. More... | |
void | submitResult (const ResultData &result) |
Submits a result to the worker. Call this function after requesting a job with job(). More... | |
Minion object that requests a job, computes the result, then submits that result to the connected worker.
stateline::comms::Minion::Minion | ( | Worker & | w, |
uint | jobID | ||
) |
Create a new a minion.
w | The parent worker object it communicates with. |
jobID | The ID of the job that the minion will do. |
JobData stateline::comms::Minion::nextJob | ( | ) |
Gets a job from the worker.
void stateline::comms::Minion::submitResult | ( | const ResultData & | result | ) |
Submits a result to the worker. Call this function after requesting a job with job().
result | The computed result. |