From: cedric Date: Wed, 30 May 2012 12:25:53 +0000 (+0000) Subject: edje: time to play with fire ! edje_cc will now use thread by default. X-Git-Tag: submit/trunk/20120815.180907~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bd6bf251c96bcc641e41f62557c4597f85f387e;p=profile%2Fivi%2Fedje.git 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. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@71558 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/edje_cc.c b/src/bin/edje_cc.c index 4e06457..84b535e 100644 --- a/src/bin/edje_cc.c +++ b/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]));