Skip to content
Snippets Groups Projects
Commit 150534f6 authored by Dmitriy Morozov's avatar Dmitriy Morozov
Browse files

Add auxiliary Master::add(..., const Link&)

parent 0ed3a8b3
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,7 @@ namespace diy ...@@ -173,6 +173,7 @@ namespace diy
inline void destroy(int i) { if (blocks_.own()) blocks_.destroy(i); } inline void destroy(int i) { if (blocks_.own()) blocks_.destroy(i); }
inline int add(int gid, void* b, Link* l); //!< add a block inline int add(int gid, void* b, Link* l); //!< add a block
inline int add(int gid, void* b, const Link& l){ return add(gid, b, l.clone()); }
inline void* release(int i); //!< release ownership of the block inline void* release(int i); //!< release ownership of the block
//!< return the `i`-th block //!< return the `i`-th block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment