ps_buffer/shared/mod.rs
1use std::sync::Arc;
2
3use crate::Buffer;
4
5mod implementations;
6
7/// [`SharedBuffer`] is a thread-safe shared-ownership wrapper around a [`Buffer`].
8///
9/// The underlying [`Buffer`] is only dropped after the underlying [`Arc`] is dropped.
10pub struct SharedBuffer {
11 arc: Arc<Buffer>,
12 buffer: Buffer,
13}