Skip to content
Snippets Groups Projects
Commit e7dee47b authored by Florian Fischer's avatar Florian Fischer
Browse files

[Runtime] don't allocate threads array twice

the threads array is initialized using the Runtime::Runtime initializer list
and afterwards again in the constructor.
parent def6885c
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,6 @@ Runtime::Runtime(workerid_t workerCount, RuntimeStrategy& strategy, unsigned int ...@@ -52,8 +52,6 @@ Runtime::Runtime(workerid_t workerCount, RuntimeStrategy& strategy, unsigned int
randomEngine(seed), randomEngine(seed),
atLeastOneWorkerIsSleeping(false), atLeastOneWorkerIsSleeping(false),
skipSleep(false) { skipSleep(false) {
threads = new pthread_t[workerCount];
const int nprocs = get_nprocs(); const int nprocs = get_nprocs();
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment