NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
| 37 | |
| 38 | // NOLINTNEXTLINE(bugprone-easily-swappable-parameters) |
| 39 | void Memory::Resize( |
| 40 | const unsigned n, |
| 41 | const TTmemory flag, |
| 42 | const int /*memDefault_MB*/, |
| 43 | const int /*memMaximum_MB*/) // NOLINT(bugprone-easily-swappable-parameters) |
| 44 | { |
| 45 | // Resize the lightweight thread size vector. Each entry is a short |
| 46 | // diagnostic token: "S" = small TT, "L" = large TT. |
| 47 | threadSizes.resize(n); |
| 48 | for (unsigned i = 0; i < n; ++i) |
| 49 | threadSizes[i] = (flag == DDS_TT_SMALL ? "S" : "L"); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | unsigned Memory::NumThreads() const |
no outgoing calls