namespace kernel {
namespace activity {
+void simgrid::kernel::activity::ActivityImpl::set_category(std::string category)
+{
+ if (surf_action_)
+ surf_action_->set_category(category);
+}
+
// boost::intrusive_ptr<Activity> support:
void intrusive_ptr_add_ref(simgrid::kernel::activity::ActivityImpl* activity)
{
#include "simgrid/forward.h"
#include <atomic>
+#include <simgrid/kernel/resource/Action.hpp>
#include <simgrid/simix.hpp>
namespace simgrid {
virtual void resume() = 0;
virtual void post() = 0; // What to do when a simcall terminates
+ void set_category(std::string category);
+
// boost::intrusive_ptr<ActivityImpl> support:
friend XBT_PUBLIC void intrusive_ptr_add_ref(ActivityImpl* activity);
friend XBT_PUBLIC void intrusive_ptr_release(ActivityImpl* activity);
surf_action_->set_priority(priority);
}
-void simgrid::kernel::activity::ExecImpl::set_category(std::string category)
-{
- if (surf_action_)
- surf_action_->set_category(category);
-}
-
void simgrid::kernel::activity::ExecImpl::post()
{
if (host_ && host_->is_off()) { /* FIXME: handle resource failure for parallel tasks too */
double get_remaining_ratio();
void set_bound(double bound);
void set_priority(double priority);
- void set_category(std::string category);
virtual ActivityImpl* migrate(s4u::Host* to);
/* The host where the execution takes place. nullptr means this is a parallel exec (and only surf knows the hosts) */