Skip to content

Name job pieces consistently when calling numberOfWorkUnits() #86

Closed

Description

@jhlegarreta

Description

Since the new multi-threading mechanism has been put in place, the notion of job pieces has transitioned from number of threads to number of work units (commit ce15429 and the related work). At many points in the code, the variable holding this number has not been renamed: e.g.

ThreadIdType numberOfThreads = this->GetNumberOfWorkUnits();

such as in

ThreadIdType numberOfThreads = this->GetNumberOfWorkUnits();

In fact no consistent naming is used for the variable holding such information (e.g. the name nbthreads can also be found).

This naming issue also applies to the remote modules.

Steps to Reproduce

Style change: no impact on the code.

Expected behavior

Increase consistency throughout the code.

Actual behavior

No impact in compilation/tests.

Reproducibility

Does not apply.

Versions

Current head in master branch.

Environment

Does not apply.

Additional Information

The issue was first discussed in PR 10 of the LabelErodeDilate remote module. Some proposals were also discussed.

Activity

  1. added
    Good first issue
    type:Style
    on Oct 27, 2018
  2. added 2 commits that reference this issue on Aug 16, 2021
    b3be6b4
    03024da
  3. added a commit that references this issue on Apr 19, 2026
  4. added a commit that references this issue on May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issuetype:Style

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions