Gary Pennington
785be453f6
remove a race from the hashing write()
...
Calling load() and store() separately leaves a lot of opportunity for a
race to occur.
This changes the logic to use compare_exchange() and will only return if
the previous value is absolutely not 1 at the point of comparison.
I also don't think this needs to be SeqCst, so relaxing that requirement
a little.
2023-06-14 15:23:12 +01:00
LinuxHeki
4c0a1e9459
fix compilation for thumbv6m-none-eabi
2023-05-02 14:41:53 +02:00
Stephen Chung
0286a52084
Use SusLock to hold pre-calculated indexer hashes.
2022-11-25 11:49:00 +08:00
Stephen Chung
6600862c22
Satisfy clippy.
2022-11-25 09:46:13 +08:00
Stephen Chung
3e7408511e
Satisfy more clippy.
2022-11-23 16:14:11 +08:00
Stephen Chung
31292e683d
Satisfy Clippy.
2022-11-23 13:24:14 +08:00
Stephen Chung
0984f2d4df
Fix docs.
2022-11-11 16:46:28 +08:00
Stephen Chung
1b248b5af7
Speed up static hashing default case.
2022-11-09 21:16:28 +08:00
l1npengtul
abe625c336
fix CI
2022-11-09 20:14:36 +09:00
l1npengtul
a8ae82e3d8
add lifetime parameter
2022-11-05 22:53:58 +09:00
l1npengtul
c49948def4
address concerns 1, 2
2022-11-05 22:46:08 +09:00
Stephen Chung
6e0f8b5007
Fix no-std build.
2022-11-05 10:49:34 +08:00
Stephen Chung
d2cd70bf53
Minor stylistic fixes.
2022-11-04 21:22:31 +08:00
l1npengtul
36edc445d1
fix build.yml, concurrency concerns, build.rs concerns
2022-11-04 15:36:18 +09:00
l1npengtul
5816d571b3
remove stable hash and fix CI
2022-11-01 21:25:45 +09:00
l1npengtul
79e7c305bf
fix templateing issue
2022-11-01 01:26:23 +09:00
l1npengtul
bb01f914e0
Address concerns
2022-11-01 00:59:07 +09:00