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

make static const #1440

Merged
merged 3 commits into from Nov 14, 2013
Merged

make static const #1440

merged 3 commits into from Nov 14, 2013

Conversation

gartung
Copy link
Member

@gartung gartung commented Nov 12, 2013

No description provided.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @gartung (Patrick Gartung) for CMSSW_7_0_X.

make static const

It involves the following packages:

SimRomanPot/SimFP420

@cmsbuild, @civanch, @nclopezo, @mdhildreth, @giamman can you please review it and eventually sign? Thanks.
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.
@ktf you are the release manager for this.

@civanch
Copy link
Contributor

civanch commented Nov 13, 2013

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

@@ -39,7 +39,7 @@ void GaussNoiseProducerFP420::generate(int NumberOfchannels,
// draw noise at random according to Gaussian tail

// initialise default gsl uniform generator engine
static gsl_rng * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
static const gsl_rng * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest making this

static gsl_rng const * const mt19937 = ...

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

@cmsbuild
Copy link
Contributor

Pull request #1440 was updated. @cmsbuild, @civanch, @nclopezo, @mdhildreth, @giamman can you please check and sign again.

@@ -39,7 +39,7 @@ void GaussNoiseProducerFP420::generate(int NumberOfchannels,
// draw noise at random according to Gaussian tail

// initialise default gsl uniform generator engine
static gsl_rng * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
static gsl_rng const * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I should have said make this
static gsl_rng const * const mt19937 = ...

@cmsbuild
Copy link
Contributor

Pull request #1440 was updated. @cmsbuild, @civanch, @nclopezo, @mdhildreth, @giamman can you please check and sign again.

@Dr15Jones
Copy link
Contributor

Looks good to me

@civanch
Copy link
Contributor

civanch commented Nov 14, 2013

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

ktf added a commit that referenced this pull request Nov 14, 2013
Multithreading fixes -- Make a static const in SimRomanPot/SimFP420
@ktf ktf merged commit 4de4aa8 into cms-sw:CMSSW_7_0_X Nov 14, 2013
@cmsbuild
Copy link
Contributor

@gartung gartung deleted the statics-SimRomanPot-SimFP420 branch November 14, 2013 15:32
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

5 participants