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
d88a7f24
Commit
d88a7f24
authored
Jul 03, 2019
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added access to underlying bulk handle
parent
84e78d11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
include/thallium/bulk.hpp
include/thallium/bulk.hpp
+13
-0
src/bulk.cpp
src/bulk.cpp
+6
-0
No files found.
include/thallium/bulk.hpp
View file @
d88a7f24
...
...
@@ -318,6 +318,19 @@ public:
*/
std
::
size_t
operator
<<
(
const
remote_bulk
&
b
)
const
;
/**
* @brief Returns the underlying hg_bulk_t handle.
* If copy == false, the returned handle is a reference to the internal
* handle managed by this bulk object, it should not be destroyed by the
* user and its lifetime will not exceed that of the bulk object.
* If copy == true, the returned handle should be destroyed by the user.
*
* @param copy whether to make a copy or not.
*
* @return The underlying hg_bulk_t handle.
*/
hg_bulk_t
get_bulk
(
bool
copy
=
false
)
const
;
/**
* @brief Function that serializes a bulk object into an archive.
*
...
...
src/bulk.cpp
View file @
d88a7f24
...
...
@@ -8,6 +8,12 @@
namespace
thallium
{
hg_bulk_t
bulk
::
get_bulk
(
bool
copy
=
false
)
const
{
if
(
copy
&&
m_bulk
!=
HG_BULK_NULL
)
margo_bulk_ref_incr
(
m_bulk
);
return
m_bulk
;
}
bulk
::
bulk_segment
bulk
::
select
(
std
::
size_t
offset
,
std
::
size_t
size
)
const
{
return
bulk_segment
(
*
this
,
offset
,
size
);
}
...
...
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