From: Jürg Billeter Date: Fri, 26 Mar 2010 13:39:58 +0000 (+0100) Subject: Do not use thread-safe type registration in plugins X-Git-Tag: 0.8.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2920f6637d6365a4b0a53f0a1ee51adda67724da;p=thirdparty%2Fvala.git Do not use thread-safe type registration in plugins Plugin types are registered when module is being initialized. --- diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala index 697e70268..5cf9fba53 100644 --- a/codegen/valatyperegisterfunction.vala +++ b/codegen/valatyperegisterfunction.vala @@ -36,7 +36,7 @@ public abstract class Vala.TypeRegisterFunction { * Constructs the C function from the specified type. */ public void init_from_type (bool plugin) { - bool use_thread_safe = context.require_glib_version (2, 14); + bool use_thread_safe = context.require_glib_version (2, 14) && !plugin; bool fundamental = false; Class cl = get_type_declaration () as Class;