Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
98fdf05b
Commit
98fdf05b
authored
Apr 22, 2014
by
David COME
Browse files
Renamed DiskReadThreadPool::DiskReadWorkerThread::_this to m_parent
parent
44c37b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DiskReadThreadPool.cpp
View file @
98fdf05b
...
...
@@ -82,7 +82,7 @@ namespace daemon {
void
DiskReadThreadPool
::
DiskReadWorkerThread
::
run
()
{
std
::
auto_ptr
<
DiskReadTaskInterface
>
task
;
while
(
1
)
{
task
.
reset
(
_this
.
popAndRequestMore
());
task
.
reset
(
m_parent
.
popAndRequestMore
());
if
(
NULL
!=
task
.
get
())
{
task
->
execute
(
lc
);
}
else
{
...
...
castor/tape/tapeserver/daemon/DiskReadThreadPool.hpp
View file @
98fdf05b
...
...
@@ -55,7 +55,7 @@ private:
class
DiskReadWorkerThread
:
private
castor
::
tape
::
threading
::
Thread
{
public:
DiskReadWorkerThread
(
DiskReadThreadPool
&
manager
)
:
threadID
(
m_nbActiveThread
++
),
_this
(
manager
),
lc
(
_this
.
m_lc
)
{
threadID
(
m_nbActiveThread
++
),
m_parent
(
manager
),
lc
(
m_parent
.
m_lc
)
{
log
::
LogContext
::
ScopedParam
param
(
lc
,
log
::
Param
(
"threadID"
,
threadID
));
lc
.
log
(
LOG_INFO
,
"DiskWrite Thread created"
);
}
...
...
@@ -64,7 +64,7 @@ private:
private:
static
tape
::
threading
::
AtomicCounter
<
int
>
m_nbActiveThread
;
const
int
threadID
;
DiskReadThreadPool
&
_this
;
DiskReadThreadPool
&
m_parent
;
castor
::
log
::
LogContext
lc
;
virtual
void
run
();
...
...
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