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: this is a bool
[simgrid.git]
/
src
/
kernel
/
resource
/
Action.cpp
diff --git
a/src/kernel/resource/Action.cpp
b/src/kernel/resource/Action.cpp
index
86f2e2a
..
4615d31
100644
(file)
--- a/
src/kernel/resource/Action.cpp
+++ b/
src/kernel/resource/Action.cpp
@@
-149,14
+149,14
@@
void Action::cancel()
}
}
-
int
Action::unref()
+
bool
Action::unref()
{
refcount_--;
if (not refcount_) {
delete this;
- return
1
;
+ return
true
;
}
- return
0
;
+ return
false
;
}
void Action::suspend()