aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/distribution.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-03-01 16:26:58 +0000
committerSebastiano Tronto <sebastiano@tronto.net>2026-03-01 16:26:58 +0000
commite68606ff95db6e31585706278b034250555bbe14 (patch)
treeeae492e7fc24cca2c051a2e75de996555ae1b19f /src/solvers/distribution.h
parentdff3a040637f2985b5b5e369148a993183964096 (diff)
downloadnissy-core-e68606ff95db6e31585706278b034250555bbe14.tar.gz
nissy-core-e68606ff95db6e31585706278b034250555bbe14.zip
C11 threads?
Diffstat (limited to 'src/solvers/distribution.h')
-rw-r--r--src/solvers/distribution.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers/distribution.h b/src/solvers/distribution.h
index e9302da..7adc964 100644
--- a/src/solvers/distribution.h
+++ b/src/solvers/distribution.h
@@ -60,12 +60,12 @@ getdistribution(
60 .distr = local_distr[i], 60 .distr = local_distr[i],
61 .table = table, 61 .table = table,
62 }; 62 };
63 wrapthread_create(&thread[i], NULL, 63 wrapthread_create(&thread[i],
64 getdistribution_runthread, &targ[i]); 64 getdistribution_runthread, &targ[i]);
65 } 65 }
66 66
67 for (i = 0; i < THREADS; i++) 67 for (i = 0; i < THREADS; i++)
68 wrapthread_join(thread[i], NULL); 68 wrapthread_join(thread[i]);
69 69
70 memset(distr, 0, INFO_DISTRIBUTION_LEN * sizeof(uint64_t)); 70 memset(distr, 0, INFO_DISTRIBUTION_LEN * sizeof(uint64_t));
71 for (i = 0; i < THREADS; i++) 71 for (i = 0; i < THREADS; i++)

Generated with cgit - Back to sebastiano.tronto.net