Description and screenshots for ecore thread samples renew
authorDenys Smalianyi <d.smalianyi@samsung.com>
Fri, 11 Sep 2015 12:11:45 +0000 (15:11 +0300)
committerDenis Smalianyi <d.smalianyi@samsung.com>
Thu, 17 Sep 2015 08:36:30 +0000 (17:36 +0900)
Change-Id: I4e630382c3f7d1d29fcb5e55a3dd2c6072f94f35
Signed-off-by: Denys Smalianyi <d.smalianyi@samsung.com>
org.tizen.sampledescriptions/html/images/ecore_thread_3.png
org.tizen.sampledescriptions/html/images/ecore_thread_4.png
org.tizen.sampledescriptions/html/mobile_n/ui_ecore_thread_3_sd_mn.htm

index f0f222f..9d7f59a 100644 (file)
Binary files a/org.tizen.sampledescriptions/html/images/ecore_thread_3.png and b/org.tizen.sampledescriptions/html/images/ecore_thread_3.png differ
index d5d9717..dc2e284 100644 (file)
Binary files a/org.tizen.sampledescriptions/html/images/ecore_thread_4.png and b/org.tizen.sampledescriptions/html/images/ecore_thread_4.png differ
index f92d1d2..f538196 100644 (file)
@@ -85,7 +85,12 @@ thread_run(void *arg)
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Mutual exclusive for shared data
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pthread_mutex_lock(&amp;lock);
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (thread_finish) break;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (thread_finish)
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thread_finish = EINA_FALSE;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pthread_mutex_unlock(&lock); //unlock before break
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pthread_mutex_unlock(&amp;lock);
 &nbsp;&nbsp;&nbsp;}