Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HEPnOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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
HEP
HEPnOS
Commits
0f684f7e
Commit
0f684f7e
authored
Mar 19, 2020
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled default constructor in WriteBatch and AsyncEngine
parent
943ecafc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
include/hepnos/AsyncEngine.hpp
include/hepnos/AsyncEngine.hpp
+2
-0
include/hepnos/WriteBatch.hpp
include/hepnos/WriteBatch.hpp
+5
-0
src/AsyncEngine.cpp
src/AsyncEngine.cpp
+7
-2
src/WriteBatch.cpp
src/WriteBatch.cpp
+6
-2
theta/packages.yaml
theta/packages.yaml
+0
-0
No files found.
include/hepnos/AsyncEngine.hpp
View file @
0f684f7e
...
...
@@ -49,6 +49,8 @@ class AsyncEngine {
public:
AsyncEngine
()
=
default
;
/**
* @brief Constructor.
*
...
...
include/hepnos/WriteBatch.hpp
View file @
0f684f7e
...
...
@@ -52,6 +52,11 @@ class WriteBatch {
public:
/**
* @brief Default constructor.
*/
WriteBatch
()
=
default
;
/**
* @brief Constructor.
*
...
...
src/AsyncEngine.cpp
View file @
0f684f7e
...
...
@@ -8,11 +8,16 @@ AsyncEngine::AsyncEngine(DataStore& ds, size_t num_threads)
:
m_impl
(
std
::
make_shared
<
AsyncEngineImpl
>
(
ds
.
m_impl
,
num_threads
))
{}
void
AsyncEngine
::
wait
()
{
m_impl
->
wait
();
if
(
m_impl
)
m_impl
->
wait
();
}
const
std
::
vector
<
std
::
string
>&
AsyncEngine
::
errors
()
const
{
return
m_impl
->
m_errors
;
static
std
::
vector
<
std
::
string
>
_default
;
if
(
m_impl
)
return
m_impl
->
m_errors
;
else
return
_default
;
}
}
src/WriteBatch.cpp
View file @
0f684f7e
...
...
@@ -18,10 +18,13 @@ WriteBatch::WriteBatch(AsyncEngine& async, unsigned max_batch_size)
WriteBatch
::~
WriteBatch
()
{}
void
WriteBatch
::
flush
()
{
m_impl
->
flush
();
if
(
m_impl
)
m_impl
->
flush
();
}
void
WriteBatch
::
activateStatistics
(
bool
activate
)
{
if
(
!
m_impl
)
throw
Exception
(
"Invalid WriteBatch"
);
if
(
activate
)
{
if
(
m_impl
->
m_stats
)
return
;
m_impl
->
m_stats
=
std
::
make_unique
<
WriteBatchStatistics
>
();
...
...
@@ -31,7 +34,8 @@ void WriteBatch::activateStatistics(bool activate) {
}
void
WriteBatch
::
collectStatistics
(
WriteBatchStatistics
&
stats
)
const
{
m_impl
->
collectStatistics
(
stats
);
if
(
m_impl
)
m_impl
->
collectStatistics
(
stats
);
}
}
examples/
theta/packages.yaml
→
theta/packages.yaml
View file @
0f684f7e
File moved
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