ach

Crates.ioach
lib.rsach
version0.2.1
sourcesrc
created_at2022-01-19 02:31:49.540864
updated_at2022-07-19 08:47:12.166089
descriptionAtomic Channel
homepage
repositoryhttps://github.com/rise0chen/ach.git
max_upload_size
id516507
size13,088
Rise Chen (rise0chen)

documentation

README

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.

Commit count: 51

cargo fmt