From f683405c7e9e0d62a8ca90ba898af1c5e2786ebf Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 1 Mar 2026 16:49:10 +0100 Subject: C11 threads! --- src/solvers/distribution.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/solvers/distribution.h') diff --git a/src/solvers/distribution.h b/src/solvers/distribution.h index 7adc964..78b9b5e 100644 --- a/src/solvers/distribution.h +++ b/src/solvers/distribution.h @@ -10,13 +10,13 @@ typedef struct { const unsigned char *table; } getdistribution_data_t; -STATIC void *getdistribution_runthread(void *); +STATIC wrapthread_return_t getdistribution_runthread(void *); STATIC void getdistribution(const unsigned char *, uint64_t [static INFO_DISTRIBUTION_LEN], const tableinfo_t [static 1]); STATIC bool distribution_equal(const uint64_t [static INFO_DISTRIBUTION_LEN], const uint64_t [static INFO_DISTRIBUTION_LEN], uint8_t); -STATIC void * +STATIC wrapthread_return_t getdistribution_runthread(void *arg) { getdistribution_data_t *data = (getdistribution_data_t *)arg; @@ -33,7 +33,7 @@ getdistribution_runthread(void *arg) for (j = 0; j < ENTRIES_PER_BYTE(k); j++) data->distr[(table[i] & (m << (j*k))) >> (j*k)]++; - return NULL; + return wrapthread_return_val; } STATIC void -- cgit v1.3