A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some #include fixes
[simgrid.git]
/
include
/
simgrid
/
s4u
/
mutex.hpp
diff --git
a/include/simgrid/s4u/mutex.hpp
b/include/simgrid/s4u/mutex.hpp
index
201f071
..
bf4e00d
100644
(file)
--- a/
include/simgrid/s4u/mutex.hpp
+++ b/
include/simgrid/s4u/mutex.hpp
@@
-6,17
+6,19
@@
#ifndef SIMGRID_S4U_MUTEX_HPP
#define SIMGRID_S4U_MUTEX_HPP
#ifndef SIMGRID_S4U_MUTEX_HPP
#define SIMGRID_S4U_MUTEX_HPP
+#include <mutex>
#include <utility>
#include <utility>
-#include <boost/intrusive_ptr.hpp>
#include <xbt/base.h>
#include "simgrid/simix.h"
namespace simgrid {
namespace s4u {
#include <xbt/base.h>
#include "simgrid/simix.h"
namespace simgrid {
namespace s4u {
-XBT_PUBLIC_CLASS Mutex {
+class ConditionVariable;
+XBT_PUBLIC_CLASS Mutex {
+friend ConditionVariable;
public:
Mutex() :
mutex_(simcall_mutex_init()) {}
public:
Mutex() :
mutex_(simcall_mutex_init()) {}
@@
-56,6
+58,7
@@
public:
private:
simgrid::simix::Mutex* mutex_;
};
private:
simgrid::simix::Mutex* mutex_;
};
+
}} // namespace simgrid::s4u
#endif /* SIMGRID_S4U_MUTEX_HPP */
}} // namespace simgrid::s4u
#endif /* SIMGRID_S4U_MUTEX_HPP */