src/ssx/occhw/occhw_async.h
/// Check an asynchronous request for successful completion
///
/// \param request A request that had been previosuly scheduled
///
/// Note that a request is not considered complete until both the engine job
/// has finshed without error and any callback has run to completion. Thus
/// jobs that have error-ed out, been cancelled or killed will be idle (and
/// rescheduleable), but not complete.
///
/// \retval 0 The request has not yet completed successfully
///
/// \retval 1 The request has completed successfully.
Check an asynchronous request for successful completion
\param request A request that had been previosuly scheduled

Note that a request is not considered complete until both the engine job
has finshed without error and any callback has run to completion. Thus
jobs that have error-ed out, been cancelled or killed will be idle (and
rescheduleable), but not complete.

\retval 0 The request has not yet completed successfully

\retval 1 The request has completed successfully.
Check an asynchronous request for successful completion \ param request A request that had been previosuly scheduled Note that a request is not considered complete until both the engine job has finshed without error and any callback has run to completion . Thus jobs that have error - ed out been cancelled or killed will be idle ( and rescheduleable ) but not complete . \ retval 0 The request has not yet completed successfully \ retval 1 The request has completed successfully .
static inline int
async_request_completed(AsyncRequest* request)
{
    return (request->state == ASYNC_REQUEST_STATE_COMPLETE);
}
static inline int async_request_completed ( AsyncRequest * request ) { return ( request -> state == ASYNC_REQUEST_STATE_COMPLETE ) ; }
Check an asynchronous request for successful completion
\param request A request that had been previosuly scheduled
Check an asynchronous request for successful completion \ param request A request that had been previosuly scheduled