[libgda/LIBGDA_5.2] Don't use (deprecated) g_thread_supported().



commit 45221440633755c2e73def25da7f1ea45a742dbb
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 27 11:12:05 2015 +0100

    Don't use (deprecated) g_thread_supported().
    
    Recent glib versions always support threading.

 libgda/thread-wrapper/gda-thread-wrapper.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libgda/thread-wrapper/gda-thread-wrapper.c b/libgda/thread-wrapper/gda-thread-wrapper.c
index f31800e..a7d8839 100644
--- a/libgda/thread-wrapper/gda-thread-wrapper.c
+++ b/libgda/thread-wrapper/gda-thread-wrapper.c
@@ -756,8 +756,6 @@ gda_thread_wrapper_get_property (GObject *object,
 GdaThreadWrapper *
 gda_thread_wrapper_new (void)
 {
-       if (! g_thread_supported ())
-               return NULL;
        return (GdaThreadWrapper *) g_object_new (GDA_TYPE_THREAD_WRAPPER, NULL);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]