Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
better use of PropertyHolder
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 11 Jul 2017 15:20:22 +0000 (17:20 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 11 Jul 2017 15:20:22 +0000 (17:20 +0200)
src/s4u/s4u_storage.cpp

index 60a9142..f746562 100644 (file)
@@ -67,12 +67,12 @@ xbt_dict_t Storage::getProperties()
 
 const char* Storage::getProperty(const char* key)
 {
 
 const char* Storage::getProperty(const char* key)
 {
-  return static_cast<const char*>(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, char* value)
 {
-  xbt_dict_set(this->getProperties(), key, value, nullptr);
+  simgrid::simix::kernelImmediate([this, key, value] { this->pimpl_->setProperty(key, value); });
 }
 
 std::map<std::string, sg_size_t>* Storage::getContent()
 }
 
 std::map<std::string, sg_size_t>* Storage::getContent()