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>
17 using ActorPtr = boost::intrusive_ptr<Actor>;
18 XBT_PUBLIC(void) intrusive_ptr_release(Actor* actor);
19 XBT_PUBLIC(void) intrusive_ptr_add_ref(Actor* actor);
22 using CommPtr = boost::intrusive_ptr<Comm>;
23 XBT_PUBLIC(void) intrusive_ptr_release(Comm* c);
24 XBT_PUBLIC(void) intrusive_ptr_add_ref(Comm* c);
28 using ExecPtr = boost::intrusive_ptr<Exec>;
29 XBT_PUBLIC(void) intrusive_ptr_release(Exec* e);
30 XBT_PUBLIC(void) intrusive_ptr_add_ref(Exec* e);
35 using MailboxPtr = boost::intrusive_ptr<Mailbox>;