Searched refs:buffer_pool (Results 1 – 3 of 3) sorted by relevance
48 let mut buffer_pool = locked_buffer_pool.lock().unwrap(); in on_return() localVariable50 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() localVariable122 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() localVariable131 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()
19 mod buffer_pool; module23 pub use buffer_pool::*;
23 buffer_pool: BufferPool, field32 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()