From: raster Date: Wed, 16 May 2012 11:04:40 +0000 (+0000) Subject: work around the workaround so it works until ecore thread goop fixed. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80c6eb25b79a30adf1b7a88fc6af1d2b318da1bf;p=profile%2Fivi%2Fedje.git work around the workaround so it works until ecore thread goop fixed. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@71155 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/edje_cc_out.c b/src/bin/edje_cc_out.c index 5805bd6..b334091 100644 --- a/src/bin/edje_cc_out.c +++ b/src/bin/edje_cc_out.c @@ -1566,6 +1566,7 @@ data_write(void) int sound_num = 0; int font_num = 0; int collection_num = 0; + int i; double t; if (!edje_file) @@ -1652,8 +1653,14 @@ data_write(void) // thread task we don't know about and it is STILL active at this point // and in the middle of shutting down, so if we get to exit the process // it's still busy and will crash accessing stuff + i = 0; while ((ecore_thread_active_get() + ecore_thread_pending_get()) > 0) - ecore_main_loop_iterate(); + { + ecore_main_loop_iterate(); + usleep(1); + i++; + if (i > 100) break; + } if (verbose) { printf("THREADS: %3.5f\n", ecore_time_get() - t); t = ecore_time_get();