1 unstable release
0.1.2 | Jun 24, 2021 |
---|---|
0.1.1 |
|
0.1.0 |
|
#895 in Audio
988 downloads per month
Used in 30 crates
(5 directly)
27KB
459 lines
🐟⤵️ basedrop
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
andShared
are smart pointers analogous toBox
andArc
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 aShared
pointer that can be used by multiple readers and writers in a thread-safe manner.