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
fix NS3 build
[simgrid.git]
/
src
/
surf
/
storage_n11.cpp
diff --git
a/src/surf/storage_n11.cpp
b/src/surf/storage_n11.cpp
index
f5fd161
..
fd4a72f
100644
(file)
--- a/
src/surf/storage_n11.cpp
+++ b/
src/surf/storage_n11.cpp
@@
-9,8
+9,6
@@
#include <math.h> /*ceil*/
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_storage);
#include <math.h> /*ceil*/
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_storage);
-static xbt_swag_t storage_running_action_set_that_does_not_need_being_checked = nullptr;
-
/*************
* CallBacks *
*************/
/*************
* CallBacks *
*************/
@@
-63,18
+61,10
@@
namespace simgrid {
namespace surf {
StorageN11Model::StorageN11Model() : StorageModel() {
namespace surf {
StorageN11Model::StorageN11Model() : StorageModel() {
- Action *action = nullptr;
-
- XBT_DEBUG("surf_storage_model_init_internal");
-
- storage_running_action_set_that_does_not_need_being_checked = xbt_swag_new(xbt_swag_offset(*action, stateHookup_));
- maxminSystem_ = lmm_system_new(false /*lazy?*/);
+ maxminSystem_ = lmm_system_new(true /* lazy update */);
}
}
-StorageN11Model::~StorageN11Model(){
- xbt_swag_free(storage_running_action_set_that_does_not_need_being_checked);
- storage_running_action_set_that_does_not_need_being_checked = nullptr;
-}
+StorageN11Model::~StorageN11Model() = default;
#include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
Storage *StorageN11Model::createStorage(const char* id, const char* type_id,
#include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
Storage *StorageN11Model::createStorage(const char* id, const char* type_id,