Commit Graph

20 Commits

Author SHA1 Message Date
Stephen Chung
982b972d3b Fix formatting. 2023-06-15 10:34:54 +08:00
Gary Pennington
ee6b6d69dd persist in using SeqCst
We probably don't need to, but let's keep the change minimal...
2023-06-14 17:03:56 +01:00
Gary Pennington
f7cc4c93d6 remove redunant compare of previous and 1
since that's what the compare_exchange does...
2023-06-14 15:29:51 +01:00
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