Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
remi
Commits
9b7c894e
Commit
9b7c894e
authored
Mar 12, 2019
by
Matthieu Dorier
Browse files
added the possibility to set the ABT-IO instance of a provider afterward
parent
7a43c723
Changes
3
Show whitespace changes
Inline
Side-by-side
include/remi/remi-server.h
View file @
9b7c894e
...
...
@@ -92,6 +92,18 @@ int remi_provider_registered(
ABT_pool
*
pool
,
remi_provider_t
*
provider
);
/**
* @brief Sets the ABT-IO instance to use for I/O.
*
* @param provider Provider.
* @param abtio ABT-IO instance.
*
* @return REMI_SUCCESS or error code defined in remi-common.h.
*/
int
remi_provider_set_abt_io_instance
(
remi_provider_t
provider
,
abt_io_instance_id
*
abtio
);
/**
* @brief Registers a migration class by providing a callback
* to call when a fileset of that class is migrated.
...
...
src/remi-client.cpp
View file @
9b7c894e
...
...
@@ -329,7 +329,6 @@ int migrate_using_abtio(
// get file size
struct
stat
st
;
if
(
0
!=
fstat
(
fd
,
&
st
))
{
close
(
fd
);
cleanup
();
return
REMI_ERR_IO
;
}
...
...
src/remi-server.cpp
View file @
9b7c894e
...
...
@@ -463,6 +463,14 @@ extern "C" int remi_provider_registered(
return
REMI_SUCCESS
;
}
extern
"C"
int
remi_provider_set_abt_io_instance
(
remi_provider_t
provider
,
abt_io_instance_id
*
abtio
)
{
provider
->
m_abt_io
=
abtio
;
return
REMI_SUCCESS
;
}
extern
"C"
int
remi_provider_register_migration_class
(
remi_provider_t
provider
,
const
char
*
class_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment