Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kate Kader
Open VDS
Commits
11337e4f
Commit
11337e4f
authored
Nov 15, 2019
by
Jørgen Lind
Browse files
Cleanup VolumeDataRequestProcessor
parent
eef2c317
Changes
2
Show whitespace changes
Inline
Side-by-side
src/VDS/VolumeDataRequestProcessor.cpp
View file @
11337e4f
...
...
@@ -39,6 +39,14 @@ VolumeDataRequestProcessor::VolumeDataRequestProcessor(VolumeDataAccessManagerIm
,
m_threadPool
(
std
::
thread
::
hardware_concurrency
())
{}
VolumeDataRequestProcessor
::~
VolumeDataRequestProcessor
()
{
for
(
auto
&
pair
:
m_pageAccessors
)
{
m_manager
.
DestroyVolumeDataPageAccessor
(
pair
.
second
);
}
}
static
int64_t
GenJobId
()
{
static
std
::
atomic
<
std
::
int64_t
>
id
(
0
);
...
...
src/VDS/VolumeDataRequestProcessor.h
View file @
11337e4f
...
...
@@ -75,6 +75,7 @@ class VolumeDataRequestProcessor
{
public:
VolumeDataRequestProcessor
(
VolumeDataAccessManagerImpl
&
manager
);
~
VolumeDataRequestProcessor
();
int64_t
AddJob
(
const
std
::
vector
<
VolumeDataChunk
>
&
chunks
,
std
::
function
<
bool
(
VolumeDataPageImpl
*
page
,
const
VolumeDataChunk
&
volumeDataChunk
,
Error
&
error
)
>
processor
);
bool
IsCompleted
(
int64_t
requestID
);
...
...
Write
Preview
Supports
Markdown
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