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

Method register_params

library/src/system/system.cpp:276–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275
276int System::register_params(
277 const int n_threads,
278 const int mem_usable_mb)
279{
280 // No upper limit -- caveat emptor.
281 if (n_threads < 1)
282 return RETURN_THREAD_INDEX;
283
284 num_threads_ = n_threads;
285 sys_mem_mb_ = mem_usable_mb;
286 return RETURN_NO_FAULT;
287}
288
289
290bool System::thread_ok(const int thread_id) const

Callers 1

SetResourcesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected