mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[common] add a reference counted buffer type
This allows buffers to be shared between different asynchronous operations. Once all users no longer need the buffer, it will be freed. The motivation for this is being able to stream Wayland clipboard data asynchronously to multiple clients. The buffer should only be freed after the clipboard has changed and all ongoing transfer completes.
This commit is contained in:
@@ -19,6 +19,7 @@ set(COMMON_SOURCES
|
||||
src/option.c
|
||||
src/framebuffer.c
|
||||
src/KVMFR.c
|
||||
src/countedbuffer.c
|
||||
)
|
||||
|
||||
add_library(lg_common STATIC ${COMMON_SOURCES})
|
||||
|
Reference in New Issue
Block a user