test/nb_vol_conn.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_nonblock_request_wait
 *
 * Purpose:     Wait (with a timeout) for an async operation to complete
 *
 * Note:        Releases the request if the operation has completed and the
 *              connector callback succeeds
 *
 * Return:      Success:    0
 *              Failure:    -1
 *
 *-------------------------------------------------------------------------
 */
H5VL_nonblock_request_wait
Purpose:     Wait (with a timeout) for an async operation to complete

Releases the request if the operation has completed and the
connector callback succeeds


H5VL_nonblock_request_wait Purpose : Wait ( with a timeout ) for an async operation to complete Releases the request if the operation has completed and the connector callback succeeds
static herr_t
H5VL_nonblock_request_wait(void *obj, uint64_t timeout, H5VL_request_status_t *status)
{
    H5VL_nonblock_t *o = (H5VL_nonblock_t *)obj;
    herr_t           ret_value;
#ifdef ENABLE_NONBLOCK_LOGGING
    printf("------- NON-BLOCKING VOL REQUEST Wait\n");
#endif
    ret_value = H5VLrequest_wait(o->under_object, o->under_vol_id, timeout, status);
    if (ret_value >= 0 && *status != H5ES_STATUS_IN_PROGRESS)
        H5VL_nonblock_free_obj(o);
    return ret_value;
}
static herr_t H5VL_nonblock_request_wait ( void * obj , uint64_t timeout , H5VL_request_status_t * status ) { H5VL_nonblock_t * o = ( H5VL_nonblock_t * ) obj ; herr_t ret_value ; #ifdef ENABLE_NONBLOCK_LOGGING printf ( " \n " ) ; #endif ret_value = H5VLrequest_wait ( o -> under_object , o -> under_vol_id , timeout , status ) ; if ( ret_value >= 0 && * status != H5ES_STATUS_IN_PROGRESS ) H5VL_nonblock_free_obj ( o ) ; return ret_value ; }
Function:    H5VL_nonblock_request_wait
 Purpose:     Wait (with a timeout) for an async operation to complete
Function : H5VL_nonblock_request_wait Purpose : Wait ( with a timeout ) for an async operation to complete