From 9dd1b2d7e3eb89b5161431c99a6aca8f284621ae Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 15 Mar 2025 23:49:43 +0100 Subject: [PATCH] shm: fix comment about wl_shm_buffer_begin_access() safety The paragraph later says that accessing different buffers is allowed. The function checks whether the same pool is accessed. Signed-off-by: Simon Ser --- src/wayland-shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-shm.c b/src/wayland-shm.c index b8c73731..b87a5b8b 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -717,7 +717,7 @@ init_sigbus_data_key(void) * terminate. * * It is safe to nest calls to these functions as long as the nested - * calls are all accessing the same buffer. The number of calls to + * calls are all accessing the same pool. The number of calls to * wl_shm_buffer_end_access must match the number of calls to * wl_shm_buffer_begin_access. These functions are thread-safe and it * is allowed to simultaneously access different buffers or the same