diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-15 16:32:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-15 16:39:23 +0000 |
| commit | 7533684d8fa85c33756d18841f2bac5379f40f8b (patch) | |
| tree | 2eab15bfe6cc576ccd740644200337d2ffc56a54 /scripts | |
| parent | render: search: set clip region (diff) | |
shm: add shm_get_many() - allows buffers to share a single pool
shm_get_many() always returns new buffers (i.e. never old, cached
ones). The newly allocated buffers are also marked for immediate
purging, meaning they’ll be destroyed on the next call to either
shm_get_buffer(), or shm_get_many().
Furthermore, we add a new attribute, ‘locked’, to the buffer
struct. When auto purging buffers, look at this instead of comparing
cookies.
Buffer consumers are expected to set ‘locked’ while they hold a
reference to it, and don’t want it destroyed behind their back.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
