buffer: track asynchronous buffers and don't release them until unref

synchronous buffers are read instantly and we can release them, but asynchronous ones have to be locked until they are unref'd from .current to avoid reading from a buffer after .release()
This commit is contained in:
Vaxry
2024-06-08 17:27:50 +02:00
parent d724556b7e
commit 9994b73ad0
6 changed files with 23 additions and 4 deletions

View File

@@ -49,6 +49,10 @@ eBufferType CWLSHMBuffer::type() {
return BUFFER_TYPE_SHM;
}
bool CWLSHMBuffer::isSynchronous() {
return true;
}
SSHMAttrs CWLSHMBuffer::shm() {
SSHMAttrs attrs;
attrs.success = true;