X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e7a6085312ea8e0cc7b71adaef4074db9b15892..0efe3d607e77e439af8019c721b20a18b1787884:/include/smpi/smpi.h diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 55d2e81b39..11c67ee7de 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -989,4 +989,17 @@ if(!name) { \ SG_END_DECL() + +/* C++ declarations for shared_malloc */ +#ifdef __cplusplus +#include + +XBT_PUBLIC(int) smpi_is_shared(void* ptr, std::vector>& private_blocks, size_t* offset); + +std::vector> shift_and_frame_private_blocks(const std::vector> vec, + size_t offset, size_t buff_size); +std::vector> merge_private_blocks(std::vector> src, + std::vector> dst); +#endif + #endif