hermet pushed a commit to branch master.

commit 2af4cc2687e68897fe77a3080352b0a1d15b6620
Author: ChunEon Park <[email protected]>
Date:   Mon Feb 25 16:56:25 2013 +0900

    * evas/cache: remove the freed worker from the pthread worker list when 
it's failed to create a new thread so as not to access it if a thread is 
working newly.
---
 ChangeLog                         | 4 ++++
 NEWS                              | 2 +-
 src/lib/evas/cache/evas_preload.c | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5207cbc..3504de1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-23  ChunEon Park (Hermet)
+
+        * Evas cache: remove the freed worker from the pthread worker list 
when it's failed to create a new thread so as not to access it if a thread is 
working newly.
+
 2013-02-21  Tom Hacohen (TAsn)
 
         * Evas text: Fixed bug with the text object direction detection.
diff --git a/NEWS b/NEWS
index d4f5c06..8879290 100644
--- a/NEWS
+++ b/NEWS
@@ -179,4 +179,4 @@ Fixes:
     * Fix ecore-x edid fetch to ftech 128, not 100 bytes.
     * Evas text: Fixed bug with the text object direction detection.
     * Evas font: Fixed font run detection for specific cases with 2 different 
fonts in the middle of a run.
-    
+    * Evas cache: remove the freed worker from the pthread worker list when 
it's failed to create a new thread so as not to access it if a thread is 
working newly.
diff --git a/src/lib/evas/cache/evas_preload.c 
b/src/lib/evas/cache/evas_preload.c
index 4ff103b..f3121a9 100644
--- a/src/lib/evas/cache/evas_preload.c
+++ b/src/lib/evas/cache/evas_preload.c
@@ -192,6 +192,7 @@ on_error:
    LKL(_mutex);
    if (_threads_count == 0)
      {
+        _workers = 
EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers), 
EINA_INLIST_GET(work)), Evas_Preload_Pthread_Worker);
         LKU(_mutex);
         if (work->func_cancel) work->func_cancel(work->data);
         free(work);

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb

Reply via email to