mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04:00
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.
This commit is contained in:
parent
b27cd9cedf
commit
c6c75298f3
2 changed files with 22 additions and 5 deletions
2
shm.h
2
shm.h
|
|
@ -13,6 +13,8 @@ struct buffer {
|
|||
int height;
|
||||
int stride;
|
||||
|
||||
bool purge;
|
||||
|
||||
bool busy;
|
||||
size_t size;
|
||||
void *mmapped;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue