Struct smithay_client_toolkit::utils::DoubleMemPool [−][src]
pub struct DoubleMemPool { /* fields omitted */ }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.
Methods
impl DoubleMemPool[src]
impl DoubleMemPoolpub fn new<Impl>(
shm: &Proxy<WlShm>,
implementation: Impl
) -> Result<DoubleMemPool> where
Impl: Implementation<(), ()> + Send, [src]
pub fn new<Impl>(
shm: &Proxy<WlShm>,
implementation: Impl
) -> Result<DoubleMemPool> where
Impl: Implementation<(), ()> + Send, Create a double memory pool
pub fn pool(&mut self) -> Option<&mut MemPool>[src]
pub fn pool(&mut self) -> Option<&mut MemPool>This method checks both its internal memory pools and returns one if that pool does not contain any buffers that are still in use by the server. If both the memory pools contain buffers that are currently in use by the server None will be returned.
Auto Trait Implementations
impl Send for DoubleMemPool
impl Send for DoubleMemPoolimpl Sync for DoubleMemPool
impl Sync for DoubleMemPool