VART-ML  0.3.0
vart::JobHandle Struct Reference

Struct representing a job handle for asynchronous execution. More...

#include <vart_runner_factory.hpp>

Public Member Functions

 JobHandle (StatusCode stat, uint32_t id)
 Constructs a JobHandle with the given status and job ID. More...
 
 JobHandle ()
 Default constructor. Initializes status to FAILURE and job_id to 0 (invalid). More...
 

Public Attributes

StatusCode status
 
uint32_t job_id
 

Detailed Description

Struct representing a job handle for asynchronous execution.

This struct holds the status of a submitted job, including whether it was successfully submitted and its unique identifier.

Constructor & Destructor Documentation

◆ JobHandle() [1/2]

vart::JobHandle::JobHandle ( StatusCode  stat,
uint32_t  id 
)
inline

Constructs a JobHandle with the given status and job ID.

Parameters
statSubmission status of the job.
idUnique identifier for the job.

◆ JobHandle() [2/2]

vart::JobHandle::JobHandle ( )
inline

Default constructor. Initializes status to FAILURE and job_id to 0 (invalid).

Member Data Documentation

◆ job_id

vart::JobHandle::job_id

Unique identifier for the job. A value of 0 is reserved as invalid; valid job IDs start from 1.

◆ status

vart::JobHandle::status

Status of the submitted job.


The documentation for this struct was generated from the following file: