Class vart::BaseRunner#
-
template<typename InputType, typename OutputType>
class BaseRunner# Subclassed by Runner
Public Functions
-
virtual ~BaseRunner() = default#
-
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 execute(InputType input, OutputType output, int jobid) = 0#
execute
- Parameters:
input – inputs with a customized type
output – outputs with a customized type
jobid – job id
- Returns:
int The vaisw error (vaisw_error_id) code of the operation.
-
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 ~BaseRunner() = default#