Skip to content
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

Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector #10951

Merged

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented Aug 26, 2015

This is one more step toward a thread safe global::OutputModule base class. The related classes NamedEventSelector and TriggerResultsBasedEventSelector had unnecessary data members that could be modified during the processing an event. This PR removes the unnecessary data. It also, for maintainability and clarity, changes some iterator loops to range based for loops.
Note: Thread safety work also needs to be done on class EventSelector. That will be a separate PR.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @wmtan for CMSSW_7_6_X.

Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector

It involves the following packages:

FWCore/Framework

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @wddgit this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@Dr15Jones
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

bool match()
{
return eventSelector_.acceptEvent(*product_);
bool match(TriggerResults const& product) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be const now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet. Work is needed in class "EventSelector" before "match", and a whole bunch of other functions can be made const. That is the goal, but we are not there yet.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Aug 30, 2015
…Cleanup

Thread Safety: Remove unneeded state from TriggerResultsBasedEventSelector
@cmsbuild cmsbuild merged commit fc6792e into cms-sw:CMSSW_7_6_X Aug 30, 2015
@wmtan wmtan deleted the TriggerResultsBasedEventSelectorCleanup branch September 4, 2015 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants