From c6c75298f339f313abb282f27dd3ca02fd7ea26a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 2 Nov 2019 01:27:05 +0100 Subject: shm: automatic buffer purging is now delayed one cycle This ensures we don't purge a buffer that a user is holding a reference to. --- shm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shm.h') diff --git a/shm.h b/shm.h index cec0ef81..18da7a1f 100644 --- a/shm.h +++ b/shm.h @@ -13,6 +13,8 @@ struct buffer { int height; int stride; + bool purge; + bool busy; size_t size; void *mmapped; -- cgit v1.3