From 2f4509c52115b8a4fb4916f51057d6b9314b4c45 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 7 Jun 2017 11:13:26 +0200 Subject: [PATCH 1/1] Declare and use ActorImplPtr --- include/simgrid/forward.h | 2 ++ src/kernel/activity/MailboxImpl.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index f4fede1504..96e8194eac 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -37,6 +37,8 @@ namespace routing { } } namespace simix { + class ActorImpl; + using ActorImplPtr = boost::intrusive_ptr; class Host; } namespace surf { diff --git a/src/kernel/activity/MailboxImpl.hpp b/src/kernel/activity/MailboxImpl.hpp index 6f13daafe5..8c4541d611 100644 --- a/src/kernel/activity/MailboxImpl.hpp +++ b/src/kernel/activity/MailboxImpl.hpp @@ -36,7 +36,7 @@ public: simgrid::s4u::Mailbox piface_; // Our interface char* name_; - boost::intrusive_ptr 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 comm_queue; boost::circular_buffer_space_optimized done_comm_queue; // messages already received in the permanent receive mode }; -- 2.20.1