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/stats.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/stats.h')
| -rw-r--r-- | src/solvers/h48/stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers/h48/stats.h b/src/solvers/h48/stats.h index ca4b72e..5f96189 100644 --- a/src/solvers/h48/stats.h +++ b/src/solvers/h48/stats.h | |||
| @@ -10,8 +10,8 @@ typedef struct { | |||
| 10 | int8_t nmoves; | 10 | int8_t nmoves; |
| 11 | int8_t depth; | 11 | int8_t depth; |
| 12 | uint8_t moves[MAXLEN]; | 12 | uint8_t moves[MAXLEN]; |
| 13 | const uint32_t *cocsepdata; | 13 | _Atomic const uint32_t *cocsepdata; |
| 14 | const uint8_t *h48data; | 14 | _Atomic const uint8_t *h48data; |
| 15 | char *s; | 15 | char *s; |
| 16 | } dfsarg_solveh48stats_t; | 16 | } dfsarg_solveh48stats_t; |
| 17 | 17 | ||
