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

Use static only when debugging PixelThresholdClusterizer #5065

Merged

Conversation

Dr15Jones
Copy link
Contributor

Helgrind reported a race condition with a function static. The
value of the static is only used during a compile time conditional
debugging. Therefore the static was moved to also be within the
same conditional build flag.
Switched the static to std::atomic so when conditionally compiled
the code will be thread safe.

Helgrind reported a race condition with a function static. The
value of the static is only used during a compile time conditional
debugging. Therefore the static was moved to also be within the
same conditional build flag.
Switched the static to std::atomic so when conditionally compiled
the code will be thread safe.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_2_X.

Use static only when debugging PixelThresholdClusterizer

It involves the following packages:

RecoLocalTracker/SiPixelClusterizer

@nclopezo, @cmsbuild, @Degano, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks.
@GiacomoSguazzoni, @rovere, @VinInn, @dkotlins, @gpetruc, @cerati, @threus, @venturia 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.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Aug 27, 2014

+1

for #5065 55c92bb

code change ok
no diffs as expected

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine).

ktf added a commit that referenced this pull request Aug 28, 2014
…sterizer

Use static only when debugging PixelThresholdClusterizer
@ktf ktf merged commit 568fbf8 into cms-sw:CMSSW_7_2_X Aug 28, 2014
@Dr15Jones Dr15Jones deleted the fixStaticsInPixelThresholdClusterizer branch September 8, 2014 14:29
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