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
SIMIX_mutex_{un}ref become MutexImpl::{un}ref
[simgrid.git]
/
src
/
kernel
/
activity
/
MutexImpl.cpp
diff --git
a/src/kernel/activity/MutexImpl.cpp
b/src/kernel/activity/MutexImpl.cpp
index
80fa3d5
..
40f60bb
100644
(file)
--- a/
src/kernel/activity/MutexImpl.cpp
+++ b/
src/kernel/activity/MutexImpl.cpp
@@
-96,9
+96,22
@@
void MutexImpl::unlock(smx_actor_t issuer)
}
XBT_OUT();
}
}
XBT_OUT();
}
+/** Increase the refcount for this mutex */
+MutexImpl* MutexImpl::ref()
+{
+ intrusive_ptr_add_ref(this);
+ return this;
}
}
+
+/** Decrease the refcount for this mutex */
+void MutexImpl::unref()
+{
+ intrusive_ptr_release(this);
}
}
-}
+
+} // namespace activity
+} // namespace kernel
+} // namespace simgrid
/** Increase the refcount for this mutex */
smx_mutex_t SIMIX_mutex_ref(smx_mutex_t mutex)
/** Increase the refcount for this mutex */
smx_mutex_t SIMIX_mutex_ref(smx_mutex_t mutex)