Lines Matching refs:BufferQueue

30 BufferQueue::ControlBlock *allocControlBlock(size_t Size, size_t Count) {  in allocControlBlock()
32 allocateBuffer((sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in allocControlBlock()
34 : reinterpret_cast<BufferQueue::ControlBlock *>(B); in allocControlBlock()
37 void deallocControlBlock(BufferQueue::ControlBlock *C, size_t Size, in deallocControlBlock()
40 (sizeof(BufferQueue::ControlBlock) - 1) + (Size * Count)); in deallocControlBlock()
43 void decRefCount(BufferQueue::ControlBlock *C, size_t Size, size_t Count) { in decRefCount()
50 void incRefCount(BufferQueue::ControlBlock *C) { in incRefCount()
70 BufferQueue::ErrorCode BufferQueue::init(size_t BS, size_t BC) { in init()
74 return BufferQueue::ErrorCode::AlreadyInitialized; in init()
84 return BufferQueue::ErrorCode::NotEnoughMemory; in init()
96 return BufferQueue::ErrorCode::NotEnoughMemory; in init()
107 return BufferQueue::ErrorCode::NotEnoughMemory; in init()
142 return BufferQueue::ErrorCode::Ok; in init()
145 BufferQueue::BufferQueue(size_t B, size_t N, in BufferQueue() function in BufferQueue
158 Success = init(B, N) == BufferQueue::ErrorCode::Ok;
161 BufferQueue::ErrorCode BufferQueue::getBuffer(Buffer &Buf) { in getBuffer()
184 BufferQueue::ErrorCode BufferQueue::releaseBuffer(Buffer &Buf) { in releaseBuffer()
194 return BufferQueue::ErrorCode::Ok; in releaseBuffer()
199 return BufferQueue::ErrorCode::UnrecognizedBuffer; in releaseBuffer()
218 BufferQueue::ErrorCode BufferQueue::finalize() { in finalize()
224 void BufferQueue::cleanupBuffers() { in cleanupBuffers()
237 BufferQueue::~BufferQueue() { cleanupBuffers(); } in ~BufferQueue()