#real-time #scenario #smart-pointers #collector #shared #memory-management

basedrop

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

1 unstable release

0.1.2 Jun 24, 2021
0.1.1 Mar 4, 2021
0.1.0 Jan 18, 2021

#895 in Audio

Download history 369/week @ 2024-07-22 278/week @ 2024-07-29 292/week @ 2024-08-05 481/week @ 2024-08-12 427/week @ 2024-08-19 452/week @ 2024-08-26 304/week @ 2024-09-02 310/week @ 2024-09-09 310/week @ 2024-09-16 346/week @ 2024-09-23 260/week @ 2024-09-30 65/week @ 2024-10-07 255/week @ 2024-10-14 226/week @ 2024-10-21 270/week @ 2024-10-28 235/week @ 2024-11-04

988 downloads per month
Used in 30 crates (5 directly)

MIT/Apache

27KB
459 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