LinuxTV Patchwork [7/8,for,ZBar] Make use of glib thread names

login
register
mail settings
Submitter ?????? ?????????
Date April 9, 2019, 12:38 p.m.
Message ID <20190409123842.19600-8-lrn1986@gmail.com>
Download mbox | patch
Permalink /patch/55581/
State New
Headers show

Comments

?????? ????????? - April 9, 2019, 12:38 p.m.
This is optional, but why not use it?

Signed-off-by: ?????? ????????? <lrn1986@gmail.com>
---
 gtk/zbargtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/gtk/zbargtk.c b/gtk/zbargtk.c
index 595acfe..c16f05c 100644
--- a/gtk/zbargtk.c
+++ b/gtk/zbargtk.c
@@ -637,7 +637,7 @@  static void zbar_gtk_init (ZBarGtk *self)
 
     /* spawn a thread to handle decoding and video */
     zbar->queue = g_async_queue_new();
-    zbar->thread = g_thread_new(NULL, zbar_gtk_processing_thread, self);
+    zbar->thread = g_thread_new("zbar gtk processing thread", zbar_gtk_processing_thread, self);
     g_assert(zbar->thread);
 }
 

Privacy Policy