X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1379a51d59d779ba9732e143068e668db4732b1a..ca4cb4ea923e4856691f88688189a7e6d0a27c98:/include/simgrid/forward.h diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 90efce0223..608bd91ea0 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -11,6 +11,7 @@ #ifdef __cplusplus #include +#include namespace simgrid { @@ -103,6 +104,11 @@ class EngineImpl; namespace actor { class ActorImpl; typedef boost::intrusive_ptr ActorImplPtr; + +// What's executed as an actor code: +typedef std::function ActorCode; +// Create an ActorCode from the parameters parsed in the XML file (or elsewhere) +typedef std::function args)> ActorCodeFactory; } // namespace actor namespace activity { @@ -202,10 +208,10 @@ typedef simgrid::s4u::Disk s4u_Disk; typedef simgrid::s4u::Storage s4u_Storage; typedef simgrid::s4u::NetZone s4u_NetZone; typedef simgrid::s4u::VirtualMachine s4u_VM; -typedef boost::intrusive_ptr smx_activity_t; typedef simgrid::simix::Timer* smx_timer_t; typedef simgrid::kernel::actor::ActorImpl* smx_actor_t; +typedef simgrid::kernel::activity::ActivityImpl* smx_activity_t; typedef simgrid::kernel::activity::ConditionVariableImpl* smx_cond_t; typedef simgrid::kernel::activity::MailboxImpl* smx_mailbox_t; typedef simgrid::kernel::activity::MutexImpl* smx_mutex_t; @@ -227,11 +233,11 @@ typedef struct s4u_Disk s4u_Disk; typedef struct s4u_Storage s4u_Storage; typedef struct s4u_NetZone s4u_NetZone; typedef struct s4u_VM s4u_VM; -typedef struct kernel_Activity* smx_activity_t; typedef enum kernel_activity_state e_smx_state_t; typedef struct s_smx_timer* smx_timer_t; typedef struct s_smx_actor* smx_actor_t; +typedef struct s_smx_activity* smx_activity_t; typedef struct s_smx_cond_t* smx_cond_t; typedef struct s_smx_mailbox* smx_mailbox_t; typedef struct s_smx_mutex* smx_mutex_t;