452 Commits

Author SHA1 Message Date
Emil Fresk
312e903e39
Merge pull request #225 from abhikjain360/master
fix safety comment in spsc
2021-07-30 12:47:29 +02:00
Abhik Jain
09192874ab
fix safety comment in spsc
Signed-off-by: Abhik Jain <abhikjain360@gmail.com>
2021-07-29 20:15:50 +05:30
Emil Fresk
e7c4c7b1f2
Merge pull request #221 from jordens/patch-1
spsc: fix optimal queue size docstring
2021-07-25 11:32:21 +02:00
Robert Jördens
46d6f1d4b2
spsc: clarify optimal queue size doc
`capacity` is defined as `N - 1`. But best performance (cheap modulo) is achieved if `N` is a power of two, not `capacity`.
This clarifies the docstring.
2021-07-20 15:04:58 +02:00
Emil Fresk
2390ab798c
Merge pull request #217 from japaric/deprecate-freeze-v0.7.3
Deprecate `Box::freeze`, prepare v0.7.3
v0.7.3
2021-07-01 10:20:35 +02:00
Emil Fresk
01f16f1716 Deprecate Box::freeze, prepare v0.7.3 2021-07-01 10:04:03 +02:00
Emil Fresk
1d502c09a8
Merge pull request #215 from japaric/v0.7.2-release
Preparing v0.7.2
v0.7.2
2021-06-30 17:24:39 +02:00
Emil Fresk
295e115542 Preparing v0.7.2 2021-06-30 17:12:36 +02:00
Emil Fresk
22e4c73383
Merge pull request #211 from GrantM11235/vec_into_array
Add new `Vec::into_array` method
2021-06-25 11:09:10 +02:00
Grant Miller
90daba17b8 Add new Vec::into_array method 2021-06-24 19:44:53 -05:00
Emil Fresk
3b4983683d Preparing for v0.7.1 v0.7.1 2021-05-23 14:25:23 +02:00
Emil Fresk
6d1a2ed3d7
Merge pull request #172 from theunkn0wn1/feature/defmt
defmt impl for Vec
2021-05-23 14:22:42 +02:00
Joshua Salzedo
63d0ed8395
cargo fmt 2021-05-18 11:11:30 -07:00
Joshua Salzedo
f4617ea76c
attempt at reimplementing on a clean history 2021-05-17 12:51:03 -07:00
Emil Fresk
afd7eb9255
Merge pull request #209 from vinaychandra/generic_mpmc
Generic MPMC
2021-05-09 17:51:09 +02:00
Vinay Chandra Dommeti
ae15c8ab9b
Multi size support 2021-05-07 13:20:34 -07:00
Vinay Chandra Dommeti
e68383be09
Const assert and switch to u8 sizes 2021-05-07 13:01:53 -07:00
Vinay Chandra Dommeti
b5dd0afa4c
USized generic MPMC 2021-05-07 12:39:36 -07:00
Emil Fresk
d722056f30 Updated changelog v0.7.0 2021-05-02 19:52:08 +02:00
Emil Fresk
eff63f794f cfail update 2021-04-27 19:03:12 +02:00
Emil Fresk
5455471ca2 Apply formating 2021-04-27 16:57:48 +02:00
Emil Fresk
58ef8cc4da Added missing Deref, AsRef and Debug for HistoryBuffer 2021-04-27 16:50:30 +02:00
Emil Fresk
a4d80a2e2a Cleanup of old code 2021-04-27 16:30:44 +02:00
Emil Fresk
8b5df08c24 Less unsafe in Vec and move to normal array ops 2021-04-27 13:48:51 +02:00
Emil Fresk
b15163b234 Preparing for v0.7.0 release 2021-04-22 20:41:58 +02:00
Emil Fresk
241085e970 Fixed MPMC panic on wrapping sub 2021-04-22 20:00:30 +02:00
Emil Fresk
bd32ab8383
Merge pull request #198 from japaric/const_generics
Const generics port
2021-04-22 19:07:27 +02:00
Emil Fresk
8754c3dfd2 Added missing {enqueue, dequeue}_unchecked interfaces 2021-04-20 16:19:00 +02:00
Emil Fresk
8c2fd3b90f
Merge pull request #144 from debug-ito/mpmc-i8-dif
mpmc: use i8 to calculate dif to deal with u8 wrapping
2021-04-20 10:52:31 +02:00
Toshio Ito
4e2825972b run cargo fmt. 2021-04-20 16:10:59 +09:00
Emil Fresk
bf6728ef6f Clarification in changelog 2021-04-20 08:59:10 +02:00
Toshio Ito
9645a1bd64 mpmc: use i8 to calculate dif
Remove the boundary check introduced by #132
Now it passes full_at_wrapped_pos0.
2021-04-20 08:34:57 +09:00
Toshio Ito
98f9636d88 mpmc: add test full_at_wrapped_pos0.
This goes into infinite loop.
2021-04-20 08:34:57 +09:00
Toshio Ito
68ca3df55a mpmc: test: add more assertions. 2021-04-20 08:34:57 +09:00
Toshio Ito
ec1f4a4601 mpmc: make a test name more specific. 2021-04-20 08:34:57 +09:00
Emil Fresk
58cb279aec IndexMap::new() is now a const-fn 2021-04-19 21:36:38 +02:00
Emil Fresk
6fdcc4fb99 New SPSC queue, now safe and much simpler
This commit implements a new, simplified, SPSC that does not have the
reported issues (e.g. not properly wrapping the indexes for non
powers-of-2), and the support for multiple different index sizes has
been removed for simplicity.
2021-04-18 19:18:56 +02:00
Emil Fresk
dfa5d5091f Updated changelog 2021-04-08 17:37:13 +02:00
Emil Fresk
0ffef8f9c9 Cleanup of comments 2021-04-08 12:05:46 +02:00
Emil Fresk
2c248a31e9 Fixed so pool and MPMC works on thumbv6 2021-04-04 13:18:49 +02:00
Emil Fresk
1fac5935e5 Added unsafe and docs to Queue::{u8(), u16()} 2021-04-04 12:55:53 +02:00
Emil Fresk
2bfe3fe8f4 Restore tests for SPSC as close as we can 2021-04-04 12:12:22 +02:00
Emil Fresk
e21c4026f7
Merge pull request #203 from kpp/simplify_histbuf
Simplify code in histbuf for const generics
2021-04-04 11:56:54 +02:00
Roman Proskuryakov
6bee0f8a9b Simplify code in histbuf 2021-04-03 22:20:09 +03:00
Emil Fresk
5d294a700f
Merge pull request #202 from kpp/fix_cfail
Fix cfail tests in const generics
2021-04-03 14:01:10 +02:00
Roman Proskuryakov
a507b8ec3e Fix cfail tests in const generics 2021-04-03 14:02:09 +03:00
Emil Fresk
fbf8c4d162
Merge pull request #201 from burrbull/const_generics
AsRef, AsMut for pool
2021-04-03 08:12:58 +02:00
Andrey Zgarbul
618eebfcb9 AsRef, AsMut for pool 2021-04-02 23:00:31 +03:00
Emil Fresk
622eba960a
Merge pull request #200 from burrbull/const_generics
remove as_slice dependency
2021-04-02 21:12:15 +02:00
Andrey Zgarbul
e0b3b3a179 remove as_slice dependency 2021-04-02 20:45:18 +03:00