aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-02 00:27:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-02 00:27:05 +0000
commitc6c75298f339f313abb282f27dd3ca02fd7ea26a (patch)
tree92d65872ad3fc1fb4b3fb830e5e5bfe9f8222acd /shm.h
parenttimerfd: use non-blocking mode, fixes dead lock (diff)
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.
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h2
1 files changed, 2 insertions, 0 deletions
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;