Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill useless typedefs surf_Resource and sg_resource_t.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 09:19:05 +0000 (11:19 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 13:01:33 +0000 (15:01 +0200)
include/simgrid/forward.h
src/surf/trace_mgr.hpp

index 4ab1b7f..e4ebfaf 100644 (file)
@@ -92,7 +92,6 @@ typedef simgrid::s4u::NetZone s4u_NetZone;
 typedef simgrid::s4u::VirtualMachine s4u_VM;
 typedef boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> smx_activity_t;
 typedef simgrid::kernel::routing::NetPoint routing_NetPoint;
 typedef simgrid::s4u::VirtualMachine s4u_VM;
 typedef boost::intrusive_ptr<simgrid::kernel::activity::ActivityImpl> smx_activity_t;
 typedef simgrid::kernel::routing::NetPoint routing_NetPoint;
-typedef simgrid::kernel::resource::Resource surf_Resource;
 typedef simgrid::trace_mgr::trace tmgr_Trace;
 
 typedef simgrid::kernel::context::Context* smx_context_t;
 typedef simgrid::trace_mgr::trace tmgr_Trace;
 
 typedef simgrid::kernel::context::Context* smx_context_t;
@@ -115,7 +114,6 @@ typedef struct s4u_NetZone s4u_NetZone;
 typedef struct s4u_VM s4u_VM;
 typedef struct kernel_Activity* smx_activity_t;
 typedef struct routing_NetPoint routing_NetPoint;
 typedef struct s4u_VM s4u_VM;
 typedef struct kernel_Activity* smx_activity_t;
 typedef struct routing_NetPoint routing_NetPoint;
-typedef struct surf_Resource surf_Resource;
 typedef struct Trace tmgr_Trace;
 
 typedef struct s_smx_context* smx_context_t;
 typedef struct Trace tmgr_Trace;
 
 typedef struct s_smx_context* smx_context_t;
@@ -135,7 +133,6 @@ typedef s4u_VM* sg_vm_t;
 typedef s4u_Actor* sg_actor_t;
 
 typedef routing_NetPoint* sg_netpoint_t;
 typedef s4u_Actor* sg_actor_t;
 
 typedef routing_NetPoint* sg_netpoint_t;
-typedef surf_Resource *sg_resource_t;
 
 typedef tmgr_Trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */
 
 
 typedef tmgr_Trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */
 
index bcd2151..0e65425 100644 (file)
@@ -20,7 +20,7 @@ class TraceEvent {
 public:
   tmgr_trace_t trace;
   unsigned int idx;
 public:
   tmgr_trace_t trace;
   unsigned int idx;
-  sg_resource_t resource;
+  Resource* resource;
   bool free_me;
 };
 
   bool free_me;
 };