diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-05 23:00:08 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-05 23:00:08 +0200 |
| commit | 1272e304b6367c7dd94d25acf88b2843adabb93a (patch) | |
| tree | e269e86cf131f3d5ed7c03a201418804257be06d /src/solvers/h48/solve.h | |
| parent | 6f338b97a222dee630c9b13896cf443254667dfb (diff) | |
| download | nissy-core-1272e304b6367c7dd94d25acf88b2843adabb93a.tar.gz nissy-core-1272e304b6367c7dd94d25acf88b2843adabb93a.zip | |
Fix rare data race
I had some misconception about how _Atomic and const worked.
This means the previous commit (expected distribution) could
be incorrect.
Diffstat (limited to 'src/solvers/h48/solve.h')
| -rw-r--r-- | src/solvers/h48/solve.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers/h48/solve.h b/src/solvers/h48/solve.h index 3948b15..c6fe8b7 100644 --- a/src/solvers/h48/solve.h +++ b/src/solvers/h48/solve.h | |||
| @@ -8,8 +8,8 @@ typedef struct { | |||
| 8 | int64_t maxsolutions; | 8 | int64_t maxsolutions; |
| 9 | uint8_t h; | 9 | uint8_t h; |
| 10 | uint8_t k; | 10 | uint8_t k; |
| 11 | const uint32_t *cocsepdata; | 11 | _Atomic const uint32_t *cocsepdata; |
| 12 | const uint8_t *h48data; | 12 | _Atomic const uint8_t *h48data; |
| 13 | char **nextsol; | 13 | char **nextsol; |
| 14 | uint8_t nissbranch; | 14 | uint8_t nissbranch; |
| 15 | int8_t npremoves; | 15 | int8_t npremoves; |
