Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d1e19492a5173f61f15c773b43d69312db90b4e0
[simgrid.git] / src / kernel / activity / CommImpl.hpp
1 /* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SRC_KERNEL_ACTIVITY_COMMIMPL_HPP_
7 #define SRC_KERNEL_ACTIVITY_COMMIMPL_HPP_
8
9 #include "simgrid/forward.h"
10
11 #include <atomic>
12 #include <simgrid/simix.hpp>
13
14 namespace simgrid {
15 namespace kernel {
16 namespace activity {
17
18 XBT_PUBLIC_CLASS CommImpl : ActivityImpl
19 {
20 public:
21   CommImpl() : piface_(this){};
22   ~CommImpl() = default;
23
24   using Ptr = boost::intrusive_ptr<ActivityImpl>;
25   simgrid::s4u::Comm piface_; // Our interface
26 };
27 }
28 }
29 }
30
31 #endif /* SRC_KERNEL_ACTIVITY_COMMIMPL_HPP_ */