]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Do not use thread-safe type registration in plugins
authorJürg Billeter <j@bitron.ch>
Fri, 26 Mar 2010 13:39:58 +0000 (14:39 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 26 Mar 2010 13:39:58 +0000 (14:39 +0100)
Plugin types are registered when module is being initialized.

codegen/valatyperegisterfunction.vala

index 697e702687ae839ecbc65f0bfe8ae7fbd617f12b..5cf9fba53863aa78eab65dddada56b6debd8c4db 100644 (file)
@@ -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;