[vala] Do not use thread-safe type registration in plugins



commit 2920f6637d6365a4b0a53f0a1ee51adda67724da
Author: Jürg Billeter <j bitron ch>
Date:   Fri Mar 26 14:39:58 2010 +0100

    Do not use thread-safe type registration in plugins
    
    Plugin types are registered when module is being initialized.

 codegen/valatyperegisterfunction.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala
index 697e702..5cf9fba 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;



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