Commit e0b5936d authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Used one mutex instead of 4 in RecallReportPacker

parent 5c78c81e
......@@ -396,22 +396,22 @@ void RecallReportPacker::fullCheckAndFinishAsyncExecute() {
//reportTapeDone()
//------------------------------------------------------------------------------
void RecallReportPacker::setTapeDone() {
cta::threading::MutexLocker mutexLocker(m_mutexTapeDone);
cta::threading::MutexLocker mutexLocker(m_mutex);
m_tapeThreadComplete = true;
}
void RecallReportPacker::setTapeComplete(){
cta::threading::MutexLocker mutexLocker(m_mutexSetTapeComplete);
cta::threading::MutexLocker mutexLocker(m_mutex);
m_retrieveMount->tapeComplete();
}
void RecallReportPacker::setDiskComplete(){
cta::threading::MutexLocker mutexLocker(m_mutexSetDiskComplete);
cta::threading::MutexLocker mutexLocker(m_mutex);
m_retrieveMount->diskComplete();
}
bool RecallReportPacker::isDiskDone(){
cta::threading::MutexLocker mutexLocker(m_mutexDiskDone);
cta::threading::MutexLocker mutexLocker(m_mutex);
return m_diskThreadComplete;
}
......@@ -419,7 +419,7 @@ bool RecallReportPacker::isDiskDone(){
//reportDiskDone()
//------------------------------------------------------------------------------
void RecallReportPacker::setDiskDone() {
cta::threading::MutexLocker mutexLocker(m_mutexDiskDone);
cta::threading::MutexLocker mutexLocker(m_mutex);
m_diskThreadComplete = true;
}
......
......@@ -233,13 +233,7 @@ private:
*/
bool m_diskThreadComplete;
cta::threading::Mutex m_mutexSetTapeComplete;
cta::threading::Mutex m_mutexSetDiskComplete;
cta::threading::Mutex m_mutexDiskDone;
cta::threading::Mutex m_mutexTapeDone;
cta::threading::Mutex m_mutex;
/*
* Proceed finish procedure for async execute for all reports.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment