Class vart::BaseRunner¶
-
template<typename InputType, typename OutputType = InputType>
class BaseRunner¶ Subclassed by Runner
Public Functions
-
virtual std::pair<std::uint32_t, int> execute_async(InputType input, OutputType output) = 0¶
-
- Parameters:
input – inputs with a customized type
output – outputs with a customized type
- Returns:
pair<jobid, status> status 0 for exit successfully, others for customized warnings or errors
-
virtual int wait(int jobid, int timeout = -1) = 0¶
wait
modes: 1. Blocking wait for specific ID. 2. Non-blocking wait for specific ID. 3. Blocking wait for any ID. 4. Non-blocking wait for any ID
- Parameters:
jobid – job id, neg for any id, others for specific job id
timeout – timeout, neg for block for ever, 0 for non-block, pos for block with a limitation(ms).
- Returns:
status 0 for exit successfully, others for customized warnings or errors
-
virtual std::pair<std::uint32_t, int> execute_async(InputType input, OutputType output) = 0¶