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
Another step toward working CommPtr. chord example is broken ATM
[simgrid.git]
/
src
/
kernel
/
activity
/
ActivityImpl.hpp
diff --git
a/src/kernel/activity/ActivityImpl.hpp
b/src/kernel/activity/ActivityImpl.hpp
index
4791484
..
13c284a
100644
(file)
--- a/
src/kernel/activity/ActivityImpl.hpp
+++ b/
src/kernel/activity/ActivityImpl.hpp
@@
-48,8
+48,11
@@
namespace activity {
delete activity;
}
+ /** @brief Increase the refcount */
void ref();
- void unref();
+ /** @brief Reduce the refcount; returns true if the object was destroyed */
+ bool unref();
+
private:
std::atomic_int_fast32_t refcount_{1};
int refcount = 1;