test/nb_vol_conn.c
/*-------------------------------------------------------------------------
 * Function:    H5VL_nonblock_request_notify
 *
 * Purpose:     Registers a user callback to be invoked when an asynchronous
 *              operation completes
 *
 * Note:        Releases the request, if connector callback succeeds
 *
 * Return:      Success:    0
 *              Failure:    -1
 *
 *-------------------------------------------------------------------------
 */
H5VL_nonblock_request_notify
Purpose:     Registers a user callback to be invoked when an asynchronous
operation completes

Releases the request, if connector callback succeeds


H5VL_nonblock_request_notify Purpose : Registers a user callback to be invoked when an asynchronous operation completes Releases the request if connector callback succeeds
static herr_t
H5VL_nonblock_request_notify(void *obj, H5VL_request_notify_t cb, void *ctx)
{
    H5VL_nonblock_t *o = (H5VL_nonblock_t *)obj;
    herr_t           ret_value;
#ifdef ENABLE_NONBLOCK_LOGGING
    printf("------- NON-BLOCKING VOL REQUEST Notify\n");
#endif
    ret_value = H5VLrequest_notify(o->under_object, o->under_vol_id, cb, ctx);
    if (ret_value >= 0)
        H5VL_nonblock_free_obj(o);
    return ret_value;
}
static herr_t H5VL_nonblock_request_notify ( void * obj , H5VL_request_notify_t cb , void * ctx ) { H5VL_nonblock_t * o = ( H5VL_nonblock_t * ) obj ; herr_t ret_value ; #ifdef ENABLE_NONBLOCK_LOGGING printf ( " \n " ) ; #endif ret_value = H5VLrequest_notify ( o -> under_object , o -> under_vol_id , cb , ctx ) ; if ( ret_value >= 0 ) H5VL_nonblock_free_obj ( o ) ; return ret_value ; }
Function:    H5VL_nonblock_request_notify
 Purpose:     Registers a user callback to be invoked when an asynchronous
              operation completes
Function : H5VL_nonblock_request_notify Purpose : Registers a user callback to be invoked when an asynchronous operation completes