aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorKyle Brenneman <kbrenneman@nvidia.com>2024-09-10 14:36:06 -0600
committerDaniel Stone <daniels@collabora.com>2025-09-15 14:45:53 +0100
commit4673ef7e9ce5de21051b64c39816a98187611966 (patch)
tree9415be5400256dbd69568946381a324fe532a162 /meson.build
parentconnection: Add a function to parse WAYLAND_DEBUG tokens (diff)
downloadwayland-4673ef7e9ce5de21051b64c39816a98187611966.tar
wayland-4673ef7e9ce5de21051b64c39816a98187611966.tar.gz
wayland-4673ef7e9ce5de21051b64c39816a98187611966.tar.bz2
wayland-4673ef7e9ce5de21051b64c39816a98187611966.tar.lz
wayland-4673ef7e9ce5de21051b64c39816a98187611966.tar.xz
wayland-4673ef7e9ce5de21051b64c39816a98187611966.tar.zst
wayland-4673ef7e9ce5de21051b64c39816a98187611966.zip
connection: Add a thread ID to WAYLAND_DEBUG output.
If WAYLAND_DEBUG contains the token "thread_id", and gettid() is available, then include the current thread ID in the output from wl_closure_print. If multiple threads are sending requests, then those requests can get interleaved. That's usually fine, but for wl_surface requests and commits, that can cause problems ranging from incorrect behavior to protocol errors. Being able to see which requests are sent by different threads would make such problems much easier to diagnose. Signed-off-by: Kyle Brenneman <kbrenneman@nvidia.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 37c1468..ce386a4 100644
--- a/meson.build
+++ b/meson.build
@@ -46,6 +46,7 @@ have_funcs = [
'memfd_create',
'mremap',
'strndup',
+ 'gettid',
]
foreach f: have_funcs
config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f))