test/nb_vol_conn.c
/*---------------------------------------------------------------------------
 * Function:    H5VL_nonblock_free_wrap_ctx
 *
 * Purpose:     Release a "wrapper context" for an object
 *
 * Note:	Take care to preserve the current HDF5 error stack
 *		when calling HDF5 API calls.
 *
 * Return:      Success:    0
 *              Failure:    -1
 *
 *---------------------------------------------------------------------------
 */
H5VL_nonblock_free_wrap_ctx
Purpose:     Release a "wrapper context" for an object

Take care to preserve the current HDF5 error stack
when calling HDF5 API calls.


H5VL_nonblock_free_wrap_ctx Purpose : Release a " wrapper context " for an object Take care to preserve the current HDF5 error stack when calling HDF5 API calls .
static herr_t
H5VL_nonblock_free_wrap_ctx(void *_wrap_ctx)
{
    H5VL_nonblock_wrap_ctx_t *wrap_ctx = (H5VL_nonblock_wrap_ctx_t *)_wrap_ctx;
    hid_t                     err_id;
#ifdef ENABLE_NONBLOCK_LOGGING
    printf("------- NON-BLOCKING VOL WRAP CTX Free\n");
#endif
    err_id = H5Eget_current_stack();
    if (wrap_ctx->under_wrap_ctx)
        H5VLfree_wrap_ctx(wrap_ctx->under_wrap_ctx, wrap_ctx->under_vol_id);
    H5Idec_ref(wrap_ctx->under_vol_id);
    H5Eset_current_stack(err_id);
    free(wrap_ctx);
    return 0;
}
static herr_t H5VL_nonblock_free_wrap_ctx ( void * _wrap_ctx ) { H5VL_nonblock_wrap_ctx_t * wrap_ctx = ( H5VL_nonblock_wrap_ctx_t * ) _wrap_ctx ; hid_t err_id ; #ifdef ENABLE_NONBLOCK_LOGGING printf ( " \n " ) ; #endif err_id = H5Eget_current_stack ( ) ; if ( wrap_ctx -> under_wrap_ctx ) H5VLfree_wrap_ctx ( wrap_ctx -> under_wrap_ctx , wrap_ctx -> under_vol_id ) ; H5Idec_ref ( wrap_ctx -> under_vol_id ) ; H5Eset_current_stack ( err_id ) ; free ( wrap_ctx ) ; return 0 ; }
Function:    H5VL_nonblock_free_wrap_ctx
 Purpose:     Release a "wrapper context" for an object
Function : H5VL_nonblock_free_wrap_ctx Purpose : Release a " wrapper context " for an object
/* Release underlying VOL ID and wrap context */ /* Free non-blocking wrap context object itself */