File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,6 @@ class handler_impl {
66
66
// / submission is a fallback from a previous submission.
67
67
std::shared_ptr<queue_impl> MSubmissionSecondaryQueue;
68
68
69
- // Protects MAuxiliaryResources.
70
- std::mutex MAuxiliaryResourcesMutex;
71
-
72
69
// Stores auxiliary resources used by internal operations.
73
70
std::vector<std::shared_ptr<const void >> MAuxiliaryResources;
74
71
};
Original file line number Diff line number Diff line change @@ -405,9 +405,7 @@ event handler::finalize() {
405
405
}
406
406
407
407
void handler::addReduction (const std::shared_ptr<const void > &ReduObj) {
408
- std::shared_ptr<detail::handler_impl> Impl = getHandlerImpl ();
409
- std::lock_guard<std::mutex> Lock (Impl->MAuxiliaryResourcesMutex );
410
- Impl->MAuxiliaryResources .push_back (ReduObj);
408
+ getHandlerImpl ()->MAuxiliaryResources .push_back (ReduObj);
411
409
}
412
410
413
411
void handler::associateWithHandler (detail::AccessorBaseHost *AccBase,
You can’t perform that action at this time.
0 commit comments