Waits for the end of DPU processing. This is a block function.
Prototype
int wait(int jobid, int timeout)
Parameters
The following table lists the wait function arguments.
| Type | Name | Description |
|---|---|---|
| int | jobid | job id, neg for any id, others for specific job id |
| int | 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.