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
fix build (and please valgrind)
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Link.hpp
diff --git
a/include/simgrid/s4u/Link.hpp
b/include/simgrid/s4u/Link.hpp
index
b9ae777
..
c02774c
100644
(file)
--- a/
include/simgrid/s4u/Link.hpp
+++ b/
include/simgrid/s4u/Link.hpp
@@
-29,11
+29,16
@@
class XBT_PUBLIC Link : public simgrid::xbt::Extendable<Link> {
// The private implementation, that never changes
kernel::resource::LinkImpl* const pimpl_;
// The private implementation, that never changes
kernel::resource::LinkImpl* const pimpl_;
+ bool currentlyDestroying_ = false;
+
public:
enum class SharingPolicy { SPLITDUPLEX = 2, SHARED = 1, FATPIPE = 0 };
public:
enum class SharingPolicy { SPLITDUPLEX = 2, SHARED = 1, FATPIPE = 0 };
+ kernel::resource::LinkImpl* get_impl() { return pimpl_; }
+
/** @brief Retrieve a link from its name */
/** @brief Retrieve a link from its name */
- static Link* by_name(const char* name);
+ static Link* by_name(std::string name);
+ static Link* by_name_or_null(std::string name);
/** @brief Retrieves the name of that link as a C++ string */
const std::string& get_name() const;
/** @brief Retrieves the name of that link as a C++ string */
const std::string& get_name() const;