[opencv] 49/89: highgui: g_thread_create deprecated warning

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sat May 13 09:57:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 2.4.13.2
in repository opencv.

commit 90da5933165c4bc1b5cc91547bb5123a01478cfd
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date:   Fri Nov 25 16:16:25 2016 +0300

    highgui: g_thread_create deprecated warning
---
 modules/highgui/src/window_gtk.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp
index bb69224..cfdf3e8 100644
--- a/modules/highgui/src/window_gtk.cpp
+++ b/modules/highgui/src/window_gtk.cpp
@@ -480,9 +480,13 @@ CV_IMPL int cvStartWindowThread(){
     // conditional that indicates a key has been pressed
     cond_have_key = g_cond_new();
 
+#if !GLIB_CHECK_VERSION(2, 32, 0)
     // this is the window update thread
     window_thread = g_thread_create((GThreadFunc) icvWindowThreadLoop,
                     NULL, TRUE, NULL);
+#else
+    window_thread = g_thread_new("OpenCV window update", (GThreadFunc)icvWindowThreadLoop, NULL);
+#endif
     }
     thread_started = window_thread!=NULL;
     return thread_started;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list