aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2025-03-15 23:49:43 +0100
committerSimon Ser <contact@emersion.fr>2025-05-20 20:14:52 +0000
commit9dd1b2d7e3eb89b5161431c99a6aca8f284621ae (patch)
tree356e56d68325a6034e6be212e033951571dd2099
parentshm: Generate an error when shm access failed even without a resource (diff)
downloadwayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar.gz
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar.bz2
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar.lz
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar.xz
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.tar.zst
wayland-9dd1b2d7e3eb89b5161431c99a6aca8f284621ae.zip
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 <contact@emersion.fr>
-rw-r--r--src/wayland-shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c
index b8c7373..b87a5b8 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