X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ef49c428ab0209965a09a36ab28b59789aaa4b5..669001c1adb41a9dfc610fc2984709010f1a09e9:/src/s4u/s4u_storage.cpp diff --git a/src/s4u/s4u_storage.cpp b/src/s4u/s4u_storage.cpp index 694466c9a4..38be6654ba 100644 --- a/src/s4u/s4u_storage.cpp +++ b/src/s4u/s4u_storage.cpp @@ -57,22 +57,22 @@ sg_size_t Storage::getSizeUsed() sg_size_t Storage::getSize() { - return pimpl_->size_; + return pimpl_->getSize(); } -xbt_dict_t Storage::getProperties() +std::map* Storage::getProperties() { return simgrid::simix::kernelImmediate([this] { return pimpl_->getProperties(); }); } const char* Storage::getProperty(const char* key) { - return static_cast(xbt_dict_get_or_null(this->getProperties(), key)); + return this->pimpl_->getProperty(key); } -void Storage::setProperty(const char* key, char* value) +void Storage::setProperty(const char* key, const char* value) { - xbt_dict_set(this->getProperties(), key, value, nullptr); + simgrid::simix::kernelImmediate([this, key, value] { this->pimpl_->setProperty(key, value); }); } std::map* Storage::getContent()