SkillAgentSearch skills...

Synqueue

Yet another MPMC queue

Install / Use

/learn @kvark/Synqueue
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

synqueue

Build Status

This is an experimental queue to be used in multi-threaded scenarios, like the task processors. More specifically:

  • internally synchronized for both consumers and producers (MPMC).
  • backed by an array, which is fast to access
  • bounded: the capacity is specified at creation

Unlike other implementations, such as crossbeam-queue, it doesn't carry a atomic bit per element. Checked by both Miri and Loom on CI.

Note: experimental and currently slower than alternatives.

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks0

Languages

Rust

Security Score

75/100

Audited on Apr 23, 2023

No findings