edje: time to play with fire ! edje_cc will now use thread by default.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 30 May 2012 12:25:53 +0000 (12:25 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 30 May 2012 12:25:53 +0000 (12:25 +0000)
You can turn it off with -nothreads. Please report any issue you face.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@71558 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc.c

index 4e06457..84b535e 100644 (file)
@@ -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]));