src/ssx/occhw/occhw_async.h
/// Check that an asynchronous request is idle
///
/// \param request An initialized request
///
/// A request is considered idle if it is not attached to any of the
/// asynchronous request queues, \e or the request has terminated with an
/// error.  This includes requests that have never been scheduled, have
/// completed or been cancelled or killed. Only idle requests can be
/// rescheduled.
///
/// \retval 0 The request is not idle
///
/// \retval 1 The request is idle
Check that an asynchronous request is idle
\param request An initialized request

A request is considered idle if it is not attached to any of the
asynchronous request queues, \e or the request has terminated with an
error.  This includes requests that have never been scheduled, have
completed or been cancelled or killed. Only idle requests can be
rescheduled.

\retval 0 The request is not idle

\retval 1 The request is idle
Check that an asynchronous request is idle \ param request An initialized request A request is considered idle if it is not attached to any of the asynchronous request queues \ e or the request has terminated with an error . This includes requests that have never been scheduled have completed or been cancelled or killed . Only idle requests can be rescheduled . \ retval 0 The request is not idle \ retval 1 The request is idle
static inline int
async_request_is_idle(AsyncRequest* request)
{
    return (request->state & ASYNC_REQUEST_IDLE_GROUP) != 0;
}
static inline int async_request_is_idle ( AsyncRequest * request ) { return ( request -> state & ASYNC_REQUEST_IDLE_GROUP ) != 0 ; }
Check that an asynchronous request is idle
\param request An initialized request
Check that an asynchronous request is idle \ param request An initialized request