Struct smithay_client_toolkit::shm::DoubleMemPool [−][src]
pub struct DoubleMemPool { /* fields omitted */ }
Expand description
A Double memory pool, for convenient double-buffering
This type wraps two internal memory pool, and can be use for conveniently implementing double-buffering in your apps.
DoubleMemPool requires a implementation that is called when
one of the two internal memory pools becomes free after None
was returned from the pool()
method.
Implementations
pub fn new<F>(shm: Attached<WlShm>, callback: F) -> Result<DoubleMemPool> where
F: FnMut(DispatchData<'_>) + 'static,
pub fn new<F>(shm: Attached<WlShm>, callback: F) -> Result<DoubleMemPool> where
F: FnMut(DispatchData<'_>) + 'static,
Create a double memory pool