mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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>
This commit is contained in:
parent
d2a3d33063
commit
9dd1b2d7e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue