Either not defined, or simply not used.
*************/
simgrid::xbt::signal<void(VirtualMachineImpl*)> VirtualMachineImpl::on_creation;
simgrid::xbt::signal<void(VirtualMachineImpl*)> VirtualMachineImpl::on_destruction;
-simgrid::xbt::signal<void(VirtualMachineImpl*)> VirtualMachineImpl::on_state_change;
+
/*********
* Model *
*********/
static xbt::signal<void(simgrid::vm::VirtualMachineImpl*)> on_creation;
/** @brief Callbacks fired after VM destruction. Signature: `void(VirtualMachineImpl*)` */
static xbt::signal<void(simgrid::vm::VirtualMachineImpl*)> on_destruction;
- /** @brief Callbacks after VM State changes. Signature: `void(VirtualMachineImpl*)` */
- static xbt::signal<void(simgrid::vm::VirtualMachineImpl*)> on_state_change;
virtual void suspend(kernel::actor::ActorImpl* issuer);
virtual void resume();
/** @ingroup SURF_storage_interface
* @brief The possible type of action for the storage component
*/
-/*************
- * Callbacks *
- *************/
-
-/** @ingroup SURF_callbacks
- * @brief Callbacks handler which emit the callbacks after StorageAction State changed *
- * @details Callback functions have the following signature: `void(StorageAction *action,
- * simgrid::kernel::resource::Action::State old, simgrid::kernel::resource::Action::State current)`
- */
-XBT_PUBLIC_DATA
-simgrid::xbt::signal<void(StorageAction*, kernel::resource::Action::State, kernel::resource::Action::State)>
- on_state_change;
/*********
* Model *
*/
class StorageAction : public Action {
public:
+ /**
+ * @brief Callbacks handler which emit the callbacks after StorageAction State changed *
+ * @details Callback functions have the following signature: `void(StorageAction& action,
+ * simgrid::kernel::resource::Action::State old, simgrid::kernel::resource::Action::State current)`
+ */
static xbt::signal<void(StorageAction*, Action::State, Action::State)> on_state_change;
/**
* Signature: `void(CpuAction *action, simgrid::kernel::resource::Action::State previous)`
*/
static simgrid::xbt::signal<void(simgrid::surf::CpuAction*, simgrid::kernel::resource::Action::State)> on_state_change;
- /** @brief Signal emitted when the action share changes (amount of flops it gets)
- * Signature: `void(CpuAction *action)`
- */
- static simgrid::xbt::signal<void(simgrid::surf::CpuAction*)> on_share_change;
CpuAction(simgrid::kernel::resource::Model * model, double cost, bool failed) : Action(model, cost, failed) {}
CpuAction(simgrid::kernel::resource::Model * model, double cost, bool failed, kernel::lmm::Variable* var)