test/nb_vol_conn.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_nonblock_request_cancel
 *
 * Purpose:     Cancels an asynchronous operation
 *
 * Note:        Releases the request, if connector callback succeeds
 *
 * Return:      Success:    0
 *              Failure:    -1
 *
 *-------------------------------------------------------------------------
 */
H5VL_nonblock_request_cancel
Purpose:     Cancels an asynchronous operation

Releases the request, if connector callback succeeds


H5VL_nonblock_request_cancel Purpose : Cancels an asynchronous operation Releases the request if connector callback succeeds
static herr_t
H5VL_nonblock_request_cancel(void *obj, 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 Cancel\n");
#endif
    ret_value = H5VLrequest_cancel(o->under_object, o->under_vol_id, status);
    if (ret_value >= 0)
        H5VL_nonblock_free_obj(o);
    return ret_value;
}
static herr_t H5VL_nonblock_request_cancel ( void * obj , 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_cancel ( o -> under_object , o -> under_vol_id , status ) ; if ( ret_value >= 0 ) H5VL_nonblock_free_obj ( o ) ; return ret_value ; }
Function:    H5VL_nonblock_request_cancel
 Purpose:     Cancels an asynchronous operation
Function : H5VL_nonblock_request_cancel Purpose : Cancels an asynchronous operation