8 releases

0.2.1 Jul 19, 2022
0.2.0 Jul 14, 2022
0.1.5 May 6, 2022
0.1.4 Apr 22, 2022
0.0.1 Jan 19, 2022

#8 in #no-heap

Download history 31/week @ 2022-08-03 7/week @ 2022-08-10 6/week @ 2022-08-17 27/week @ 2022-08-24 10/week @ 2022-08-31 41/week @ 2022-09-07 16/week @ 2022-09-14 6/week @ 2022-09-21 14/week @ 2022-09-28 14/week @ 2022-10-05 6/week @ 2022-10-12 10/week @ 2022-10-19 9/week @ 2022-10-26 23/week @ 2022-11-02 22/week @ 2022-11-16

61 downloads per month

Custom license

88KB
1.5K SLoC

Ach

Features

  • const: static friendly
  • no_std: Can run in embedded devices
  • no_alloc: Needn't dynamic memory allocation
  • Lock Free
  • Wait Free: try_send/try_recv is Wait Free
  • Spin: send/recv is only spin in critical section

Usage

AchOption

It can set/take/replace.

Pool

It is an array of AchOption.

Cell

It has allthe functions of AchOption, and it can be referenced.

It is similar to RwLock.

Array

It is an array of Cell.

Spsc

bounded SPSC queue.

Ring

bounded ring buffer.

Mpmc

bounded MPMC queue.

Pubsub

broadcast channel.

Dependencies

~150KB