summary refs log tree commit diff stats
path: root/ui/console-gl.c
diff options
context:
space:
mode:
authorAkihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>2025-06-03 18:18:29 +0900
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-07-14 14:51:12 +0400
commit37ff925d5d4a70a951ade42094896246c989742f (patch)
tree4c2d92b4b36b860862d9a31ed3a5ab2e0405d19a /ui/console-gl.c
parentaef22331b5a4670f42638a5f63a26e93bf779aae (diff)
downloadfocaccia-qemu-37ff925d5d4a70a951ade42094896246c989742f.tar.gz
focaccia-qemu-37ff925d5d4a70a951ade42094896246c989742f.zip
ui/vnc: Introduce the VncWorker type
The worker thread copies data in VncState to avoid race, but some
data are too big to copy. Such data are held with pointers to avoid
the overhead to copy, but it requires tedious memory management and
makes them vulnerable to race.

Introduce the VncWorker type to contain all data shared without copying.
It allows allocating and freeing all shared data at once and shows that
the race with the worker thread needs to be taken care of when
accessing them.

Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20250603-zlib-v3-2-20b857bd8d05@rsg.ci.i.u-tokyo.ac.jp>
Diffstat (limited to 'ui/console-gl.c')
0 files changed, 0 insertions, 0 deletions