New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ServiceWeakToken with asynchronous tasks #33330
Use ServiceWeakToken with asynchronous tasks #33330
Conversation
Make sure ServiceToken remains alive during asynchronous calls.
To avoid the case where a tbb task lives beyond the lifetime of the EventProcessor, we need to avoid having the Services being held alive by the lambdas.
@dan131riley this is the implementation I finally decided upon, replacing the one to which I pointed you. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33330/21880
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: FWCore/Framework @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cd92ed/13983/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: Comparison SummarySummary:
|
Disable TBB thread observer in PostEndJob watcher
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33330/21882
|
Pull request #33330 was updated. @smuzaffar, @Dr15Jones, @makortel, @cmsbuild, @Martin-Grunewald, @fwyzard can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-cd92ed/13991/summary.html Comparison SummarySummary:
|
+1 |
@@ -771,6 +771,11 @@ namespace edm { | |||
|
|||
if (not threadTracker_) { | |||
threadTracker_ = std::make_unique<ThreadTracker>(); | |||
iReg.watchPostEndJob([]() { | |||
if (threadTracker_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering how this
gets captured with empty []
(even if it appears to compile here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
threadTracker_ is static
so no this
pointer is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
PR validation:
All framework unit tests pass.