MCPcopy Create free account
hub / github.com/dds-bridge/dds / Resize

Method Resize

library/src/system/memory.cpp:39–50  ·  view source on GitHub ↗

NOLINTNEXTLINE(bugprone-easily-swappable-parameters)

Source from the content-addressed store, hash-verified

37
38// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
39void 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
53unsigned Memory::NumThreads() const

Callers 9

SetResourcesFunction · 0.80
ensure_threadFunction · 0.80
ensure_threadFunction · 0.80
ensure_threadFunction · 0.80
TESTFunction · 0.80
ensure_threadFunction · 0.80
ensure_threadFunction · 0.80
TESTFunction · 0.80
ensure_threadsFunction · 0.80

Calls

no outgoing calls

Tested by 8

ensure_threadFunction · 0.64
ensure_threadFunction · 0.64
ensure_threadFunction · 0.64
TESTFunction · 0.64
ensure_threadFunction · 0.64
ensure_threadFunction · 0.64
TESTFunction · 0.64
ensure_threadsFunction · 0.64