[vala] codegen: Do not call g_thread_init when targeting GLib >= 2.32



commit d087035c2925882bb7274cc2f52f0f438a681c85
Author: JÃrg Billeter <j bitron ch>
Date:   Fri Oct 19 21:28:03 2012 +0200

    codegen: Do not call g_thread_init when targeting GLib >= 2.32

 codegen/valaccodemethodmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index a425490..d6b8cf4 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -834,7 +834,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
 				ccode.add_expression (mem_profiler_init_call);
 			}
 
-			if (context.thread) {
+			if (context.thread && !context.require_glib_version (2, 32)) {
 				var thread_init_call = new CCodeFunctionCall (new CCodeIdentifier ("g_thread_init"));
 				thread_init_call.line = cmain.line;
 				thread_init_call.add_argument (new CCodeConstant ("NULL"));



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