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
have only one refcounting system for the activities
[simgrid.git]
/
src
/
simix
/
smx_network.cpp
diff --git
a/src/simix/smx_network.cpp
b/src/simix/smx_network.cpp
index
410eb3b
..
74cdf59
100644
(file)
--- a/
src/simix/smx_network.cpp
+++ b/
src/simix/smx_network.cpp
@@
-726,7
+726,7
@@
void SIMIX_comm_copy_data(smx_activity_t synchro)
smx_activity_t SIMIX_comm_ref(smx_activity_t comm)
{
if (comm != nullptr)
smx_activity_t SIMIX_comm_ref(smx_activity_t comm)
{
if (comm != nullptr)
-
intrusive_ptr_add_ref(comm
);
+
comm->ref(
);
return comm;
}
return comm;
}
@@
-734,5
+734,5
@@
smx_activity_t SIMIX_comm_ref(smx_activity_t comm)
void SIMIX_comm_unref(smx_activity_t comm)
{
if (comm != nullptr)
void SIMIX_comm_unref(smx_activity_t comm)
{
if (comm != nullptr)
-
intrusive_ptr_release(comm
);
+
comm->unref(
);
}
}