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

feature: Add a numberThreads parameter. #133

Closed
wants to merge 4 commits into from

Conversation

rhuss
Copy link
Contributor

@rhuss rhuss commented Nov 25, 2017

Add a parameter to specify an absolute value of threads to start.
For the rational please see #132

Please choose either #132 or this PR, they are orthogonal and this PR includes also the fix of #132.

rhuss and others added 2 commits November 25, 2017 09:41
Add a parameter to specify an absolute value of threads to start.
For the rational please see mathieucarbou#132
@ghost ghost assigned mathieucarbou Feb 1, 2019
@ghost ghost added the under-review label Feb 1, 2019
Copy link
Owner

@mathieucarbou mathieucarbou left a comment

Choose a reason for hiding this comment

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

Please remove the formatting to cleanup the diff and I'll merge. Thanks :-)

@mathieucarbou mathieucarbou added this to the 4.0 milestone Feb 1, 2019
Copy link

@sic2 sic2 left a comment

Choose a reason for hiding this comment

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

Left a bunch of comments that you should take into account

* The default is 0 which implies that the default for <code>concurrencyFactor</code>
* is used.
*/
@Parameter(property = "license.numberThreads", defaultValue = "0")
Copy link

Choose a reason for hiding this comment

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

This should be documented in the README


private int getNumberOfExecutorThreads() {
int nThreads = numberThreads;
if (nThreads != 0) {
Copy link

Choose a reason for hiding this comment

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

are you validating against negative numbers?

@mathieucarbou
Copy link
Owner

Replaced by #146

@ghost ghost removed the under-review label Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants