Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thallium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
thallium
Commits
33b8572e
Commit
33b8572e
authored
Aug 06, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added possibility to create endpoint and provider_handle from an hg_addr_t
parent
35cbb419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
include/thallium/endpoint.hpp
include/thallium/endpoint.hpp
+10
-4
include/thallium/provider_handle.hpp
include/thallium/provider_handle.hpp
+10
-0
No files found.
include/thallium/endpoint.hpp
View file @
33b8572e
...
@@ -40,6 +40,8 @@ private:
...
@@ -40,6 +40,8 @@ private:
engine
*
m_engine
;
engine
*
m_engine
;
hg_addr_t
m_addr
;
hg_addr_t
m_addr
;
public:
/**
/**
* @brief Constructor. Made private since endpoint instances
* @brief Constructor. Made private since endpoint instances
* can only be created using engine::lookup.
* can only be created using engine::lookup.
...
@@ -47,10 +49,14 @@ private:
...
@@ -47,10 +49,14 @@ private:
* @param e Engine that created the endpoint.
* @param e Engine that created the endpoint.
* @param addr Mercury address.
* @param addr Mercury address.
*/
*/
endpoint
(
engine
&
e
,
hg_addr_t
addr
)
endpoint
(
engine
&
e
,
hg_addr_t
addr
,
bool
take_ownership
=
true
)
:
m_engine
(
&
e
),
m_addr
(
addr
)
{}
:
m_engine
(
&
e
),
m_addr
(
HG_ADDR_NULL
)
{
if
(
take_ownership
)
{
public:
m_addr
=
addr
;
}
else
{
margo_addr_dup
(
m_engine
->
m_mid
,
addr
,
&
m_addr
);
}
}
/**
/**
* @brief Default constructor defined so that endpoints can
* @brief Default constructor defined so that endpoints can
...
...
include/thallium/provider_handle.hpp
View file @
33b8572e
...
@@ -28,6 +28,16 @@ private:
...
@@ -28,6 +28,16 @@ private:
public:
public:
/**
* @brief Constructor from a HG address.
*
* @param e engine.
* @param addr Address to encapsulate.
* @param provider_id provider id.
*/
provider_handle
(
engine
&
e
,
hg_addr_t
addr
,
uint16_t
provider_id
=
0
,
bool
take_ownership
=
true
)
:
endpoint
(
e
,
addr
,
take_ownership
),
m_provider_id
(
provider_id
)
{}
/**
/**
* @brief Constructor.
* @brief Constructor.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment