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
Cosmetics: fix "Malformed whitespace in C++" spotted by codefactor.io.
[simgrid.git]
/
src
/
surf
/
StorageImpl.cpp
diff --git
a/src/surf/StorageImpl.cpp
b/src/surf/StorageImpl.cpp
index
9cdc554
..
4db2a48
100644
(file)
--- a/
src/surf/StorageImpl.cpp
+++ b/
src/surf/StorageImpl.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-20
19
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2013-20
20
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-41,19
+41,19
@@
StorageImpl::StorageImpl(kernel::resource::Model* model, const std::string& name
: Resource(model, name, maxminSystem->constraint_new(this, std::max(bread, bwrite)))
, piface_(name, this)
, typeId_(type_id)
: Resource(model, name, maxminSystem->constraint_new(this, std::max(bread, bwrite)))
, piface_(name, this)
, typeId_(type_id)
- , content_name(content_name)
- , size_(size)
, attach_(attach)
, attach_(attach)
+ , content_name_(content_name)
+ , size_(size)
{
StorageImpl::turn_on();
XBT_DEBUG("Create resource with Bread '%f' Bwrite '%f' and Size '%llu'", bread, bwrite, size);
{
StorageImpl::turn_on();
XBT_DEBUG("Create resource with Bread '%f' Bwrite '%f' and Size '%llu'", bread, bwrite, size);
- constraint
R
ead_ = maxminSystem->constraint_new(this, bread);
- constraint
W
rite_ = maxminSystem->constraint_new(this, bwrite);
+ constraint
_r
ead_ = maxminSystem->constraint_new(this, bread);
+ constraint
_w
rite_ = maxminSystem->constraint_new(this, bwrite);
}
StorageImpl::~StorageImpl()
{
}
StorageImpl::~StorageImpl()
{
- xbt_assert(currently
D
estroying_, "Don't delete Storages directly. Call destroy() instead.");
+ xbt_assert(currently
_d
estroying_, "Don't delete Storages directly. Call destroy() instead.");
}
/** @brief Fire the required callbacks and destroy the object
}
/** @brief Fire the required callbacks and destroy the object
@@
-62,8
+62,8
@@
StorageImpl::~StorageImpl()
*/
void StorageImpl::destroy()
{
*/
void StorageImpl::destroy()
{
- if (not currently
D
estroying_) {
- currently
D
estroying_ = true;
+ if (not currently
_d
estroying_) {
+ currently
_d
estroying_ = true;
s4u::Storage::on_destruction(this->piface_);
delete this;
}
s4u::Storage::on_destruction(this->piface_);
delete this;
}
@@
-93,8
+93,7
@@
void StorageImpl::turn_off()
s4u::Storage::on_state_change(this->piface_);
}
}
s4u::Storage::on_state_change(this->piface_);
}
}
-xbt::signal<void(StorageAction const&, kernel::resource::Action::State, kernel::resource::Action::State)>
- StorageAction::on_state_change;
+xbt::signal<void(StorageAction const&, Action::State, Action::State)> StorageAction::on_state_change;
/**********
* Action *
/**********
* Action *