A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
properties are now stored in maps and managed by ProperyHolder
[simgrid.git]
/
src
/
s4u
/
s4u_storage.cpp
diff --git
a/src/s4u/s4u_storage.cpp
b/src/s4u/s4u_storage.cpp
index
60a9142
..
38be665
100644
(file)
--- a/
src/s4u/s4u_storage.cpp
+++ b/
src/s4u/s4u_storage.cpp
@@
-60,19
+60,19
@@
sg_size_t Storage::getSize()
return pimpl_->getSize();
}
return pimpl_->getSize();
}
-
xbt_dict_t
Storage::getProperties()
+
std::map<std::string, std::string>*
Storage::getProperties()
{
return simgrid::simix::kernelImmediate([this] { return pimpl_->getProperties(); });
}
const char* Storage::getProperty(const char* key)
{
{
return simgrid::simix::kernelImmediate([this] { return pimpl_->getProperties(); });
}
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, c
onst c
har* 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()