Commit 7a663486 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added the possibility to set an ABT-IO instance to use

parent bddb1bdf
......@@ -8,6 +8,7 @@
#define __SDSKV_SERVER_H
#include <margo.h>
#include <abt-io.h>
#include <sdskv-common.h>
#ifdef __cplusplus
......@@ -163,6 +164,18 @@ int sdskv_provider_set_migration_callbacks(
sdskv_post_migration_callback_fn post_cb,
void* uargs);
/**
* @brief Sets the ABT-IO instance to be used by REMI for migration IO.
*
* @param provider Provider.
* @param abtio ABT-IO instance.
*
* @return SDSKV_SUCCESS or error code defined in sdskv-common.h
*/
int sdskv_provider_set_abio_instance(
sdskv_provider_t provider,
abt_io_instance_id abtio);
#ifdef __cplusplus
}
#endif
......
......@@ -2369,3 +2369,12 @@ static int sdskv_post_migration_callback(remi_fileset_t fileset, void* uargs)
return 0;
}
extern "C" int sdskv_provider_set_abio_instance(
sdskv_provider_t provider,
abt_io_instance_id abtio)
{
remi_provider_set_abt_io_instance(
provider->remi_provider,
abtio);
return SDSKV_SUCCESS;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment