namespace kernel {
namespace activity {
+ActivityImpl::~ActivityImpl()
+{
+ if (surf_action_) {
+ surf_action_->unref();
+ XBT_DEBUG("Destroy activity %p", this);
+ surf_action_ = nullptr;
+ }
+}
+
void ActivityImpl::suspend()
{
if (surf_action_ == nullptr)
on_resumed(this);
}
-void ActivityImpl::set_category(std::string category)
+void ActivityImpl::set_category(const std::string& category)
{
if (surf_action_)
surf_action_->set_category(category);