We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac118ae + 90da593 commit 7e38a2fCopy full SHA for 7e38a2f
modules/highgui/src/window_gtk.cpp
@@ -480,9 +480,13 @@ CV_IMPL int cvStartWindowThread(){
480
// conditional that indicates a key has been pressed
481
cond_have_key = g_cond_new();
482
483
+#if !GLIB_CHECK_VERSION(2, 32, 0)
484
// this is the window update thread
485
window_thread = g_thread_create((GThreadFunc) icvWindowThreadLoop,
486
NULL, TRUE, NULL);
487
+#else
488
+ window_thread = g_thread_new("OpenCV window update", (GThreadFunc)icvWindowThreadLoop, NULL);
489
+#endif
490
}
491
thread_started = window_thread!=NULL;
492
return thread_started;
0 commit comments