From aa84f35c5b2c4caebbdb032b1b7f31ac095c813c Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 30 May 2012 12:25:53 +0000 Subject: [PATCH] edje: time to play with fire ! edje_cc will now use thread by default. You can turn it off with -nothreads. Please report any issue you face. SVN revision: 71558 --- legacy/edje/src/bin/edje_cc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/legacy/edje/src/bin/edje_cc.c b/legacy/edje/src/bin/edje_cc.c index 4e06457424..84b535ebe1 100644 --- a/legacy/edje/src/bin/edje_cc.c +++ b/legacy/edje/src/bin/edje_cc.c @@ -30,7 +30,7 @@ int no_save = 0; int min_quality = 0; int max_quality = 100; int compress_mode = EET_COMPRESSION_DEFAULT; -int threads = 0; +int threads = 1; static void main_help(void) @@ -56,7 +56,8 @@ main_help(void) "-Ddefine_val=to CPP style define to define input macro definitions to the .edc source\n" "-fastcomp Use a faster compression algorithm (LZ4) (mutually exclusive with -fastdecomp)\n" "-fastdecomp Use a faster decompression algorithm (LZ4HC) (mutually exclusive with -fastcomp)\n" - "-threads Compile the edje file using multiple parallel threads\n" + "-threads Compile the edje file using multiple parallel threads (by default)\n" + "-nothreads Compile the edje file using only the main loop\n" ,progname); } @@ -161,6 +162,10 @@ main(int argc, char **argv) { threads = 1; } + else if (!strcmp(argv[i], "-nothreads")) + { + threads = 0; + } else if (!strncmp(argv[i], "-D", 2)) { defines = eina_list_append(defines, mem_strdup(argv[i]));