Skip to content
Snippets Groups Projects
Commit f9133aad authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Fix SimpleLawsTest: Init affinity and actually wait on CPS

parent 43da84c7
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,8 @@ static void alphaFun() {
memset(currentFiberData.payload, 0, sizeof(uint64_t) * PAYLOAD_COUNT);
currentFiberData.fiberNum = i;
currentFiberData.cps = nullptr;
affinities[i].affinity = Fiber::NOT_AFFINE;
}
for (unsigned int round = 0; round < ROUND_COUNT; ++round) {
......@@ -82,6 +84,7 @@ static void alphaFun() {
&affinities[i].affinity);
runtime->schedule(*fiber);
}
cps.wait();
free(fiberData);
free(affinities);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment