Skip to content
GitLab
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
bab0e672
Commit
bab0e672
authored
Apr 30, 2014
by
Eric Cano
Browse files
Fixed wrong order in member variables initialzation (and avoided member-to-memeber initialization)
parent
763314f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DiskReadThreadPool.hpp
View file @
bab0e672
...
...
@@ -70,16 +70,16 @@ private:
class
DiskReadWorkerThread
:
private
castor
::
tape
::
threading
::
Thread
{
public:
DiskReadWorkerThread
(
DiskReadThreadPool
&
manager
)
:
m_threadID
(
m_
parent
.
m_nbActiveThread
++
),
m_
parent
(
manager
),
m_
lc
(
m_parent
.
m_lc
)
{
DiskReadWorkerThread
(
DiskReadThreadPool
&
parent
)
:
m_parent
(
parent
),
m_threadID
(
parent
.
m_nbActiveThread
++
),
m_lc
(
m_parent
.
m_lc
)
{
log
::
LogContext
::
ScopedParam
param
(
m_lc
,
log
::
Param
(
"threadID"
,
m_threadID
));
m_lc
.
log
(
LOG_INFO
,
"DiskWrite Thread created"
);
}
void
startThreads
()
{
start
();
}
void
waitThreads
()
{
wait
();
}
private:
const
int
m_threadID
;
DiskReadThreadPool
&
m_parent
;
const
int
m_threadID
;
castor
::
log
::
LogContext
m_lc
;
virtual
void
run
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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