Home
last modified time | relevance | path

Searched refs:buffer_pool (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/bufferstreams/rust/src/buffers/
Dbuffer_pool.rs48 let mut buffer_pool = locked_buffer_pool.lock().unwrap(); in on_return() localVariable
50 buffer_pool.return_buffer(buffer.id()); in on_return()
121 let mut buffer_pool = BufferPool::new(1, STREAM_CONFIG).unwrap(); in buffer_pool_next_buffer() localVariable
122 let next_buffer = buffer_pool.next_buffer(); in buffer_pool_next_buffer()
125 assert!(buffer_pool.next_buffer().is_none()); in buffer_pool_next_buffer()
130 let mut buffer_pool = BufferPool::new(1, STREAM_CONFIG).unwrap(); in drop_buffer_returns_to_pool() localVariable
131 let next_buffer = buffer_pool.next_buffer(); in drop_buffer_returns_to_pool()
135 assert!(buffer_pool.next_buffer().is_some()); in drop_buffer_returns_to_pool()
Dmod.rs19 mod buffer_pool; module
23 pub use buffer_pool::*;
/frameworks/native/libs/bufferstreams/rust/src/publishers/
Dbuffer_pool_publisher.rs23 buffer_pool: BufferPool, field
32 BufferPool::new(size, stream_config).map(|buffer_pool| Self { in new()
34 buffer_pool, in new()
45 if let Some(buffer) = self.buffer_pool.next_buffer() { in send_next_frame()