Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare and use ActorImplPtr
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 7 Jun 2017 09:13:26 +0000 (11:13 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 13 Jun 2017 20:18:11 +0000 (22:18 +0200)
include/simgrid/forward.h
src/kernel/activity/MailboxImpl.hpp

index f4fede1..96e8194 100644 (file)
@@ -37,6 +37,8 @@ namespace routing {
 }
 }
 namespace simix {
 }
 }
 namespace simix {
+  class ActorImpl;
+  using ActorImplPtr = boost::intrusive_ptr<ActorImpl>;
   class Host;
 }
 namespace surf {
   class Host;
 }
 namespace surf {
index 6f13daa..8c4541d 100644 (file)
@@ -36,7 +36,7 @@ public:
   simgrid::s4u::Mailbox piface_; // Our interface
   char* name_;
 
   simgrid::s4u::Mailbox piface_; // Our interface
   char* name_;
 
-  boost::intrusive_ptr<simgrid::simix::ActorImpl> permanent_receiver; // process which the mailbox is attached to
+  simgrid::simix::ActorImplPtr permanent_receiver; // process which the mailbox is attached to
   boost::circular_buffer_space_optimized<smx_activity_t> comm_queue;
   boost::circular_buffer_space_optimized<smx_activity_t> done_comm_queue; // messages already received in the permanent receive mode
 };
   boost::circular_buffer_space_optimized<smx_activity_t> comm_queue;
   boost::circular_buffer_space_optimized<smx_activity_t> done_comm_queue; // messages already received in the permanent receive mode
 };