1 /* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_S4U_FORWARD_HPP
7 #define SIMGRID_S4U_FORWARD_HPP
9 #include <boost/intrusive_ptr.hpp>
16 XBT_PUBLIC(void) intrusive_ptr_release(Actor* actor);
17 XBT_PUBLIC(void) intrusive_ptr_add_ref(Actor* actor);
18 using ActorPtr = boost::intrusive_ptr<Actor>;
22 using CommPtr = boost::intrusive_ptr<Comm>;
27 using MailboxPtr = boost::intrusive_ptr<Mailbox>;
35 XBT_PUBLIC(void) intrusive_ptr_release(Comm* c);
36 XBT_PUBLIC(void) intrusive_ptr_add_ref(Comm* c);