#audio #tools #real-time #set

basedrop

Memory-management tools for real-time audio and other latency-critical scenarios

2 releases

0.1.1 Mar 4, 2021
0.1.0 Jan 18, 2021


Used in 3 crates (via kira)

MIT/Apache

26KB
421 lines

🐟⤵️ basedrop

Cargo Documentation

A set of memory-management tools for real-time audio and other latency-critical scenarios.

basedrop provides smart pointers analogous to Box and Arc which mark their contents for deferred collection on another thread rather than immediately freeing it, making them safe to drop on a real-time thread.

License

basedrop is distributed under the terms of both the MIT license and the Apache license, version 2.0. Contributions are accepted under the same terms.


lib.rs:

Memory-management tools for real-time audio and other latency-critical scenarios.

  • Owned and Shared are smart pointers analogous to Box and Arc which add their contents to a queue for deferred collection when dropped.
  • Collector is used to process the drop queue.
  • Node provides a lower-level interface for implementing custom smart pointers or data structures.
  • SharedCell implements a mutable memory location holding a Shared pointer that can be used by multiple readers and writers in a thread-safe manner.

No runtime deps