#include "src/kernel/activity/MutexImpl.hpp"
#include "src/kernel/activity/SynchroRaw.hpp"
-#include "src/simix/smx_synchro_private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_mutex, simix_synchro, "Mutex kernel-space implementation");
}
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)