Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f66c3f9c
Commit
f66c3f9c
authored
5 years ago
by
Cedric CAFFY
Browse files
Options
Downloads
Patches
Plain Diff
Used one mutex instead of 4 in RecallReportPacker
parent
1a483e26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp
+5
-5
5 additions, 5 deletions
...rver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp
+1
-7
1 addition, 7 deletions
...rver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp
with
6 additions
and
12 deletions
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp
+
5
−
5
View file @
f66c3f9c
...
...
@@ -396,22 +396,22 @@ void RecallReportPacker::fullCheckAndFinishAsyncExecute() {
//reportTapeDone()
//------------------------------------------------------------------------------
void
RecallReportPacker
::
setTapeDone
()
{
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
TapeDone
);
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
);
m_tapeThreadComplete
=
true
;
}
void
RecallReportPacker
::
setTapeComplete
(){
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
SetTapeComplete
);
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
);
m_retrieveMount
->
tapeComplete
();
}
void
RecallReportPacker
::
setDiskComplete
(){
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
SetDiskComplete
);
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
);
m_retrieveMount
->
diskComplete
();
}
bool
RecallReportPacker
::
isDiskDone
(){
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
DiskDone
);
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_mutex
DiskDone
);
cta
::
threading
::
MutexLocker
mutexLocker
(
m_mutex
);
m_diskThreadComplete
=
true
;
}
...
...
This diff is collapsed.
Click to expand it.
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.hpp
+
1
−
7
View file @
f66c3f9c
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment