cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=20d95413c3f7a224f6905a4846b32fda0c6627d4

commit 20d95413c3f7a224f6905a4846b32fda0c6627d4
Author: Cedric BAIL <cedric.b...@samsung.com>
Date:   Fri Mar 7 16:49:14 2014 +0900

    eio: check if we need to wake up thread when the memory limit is changed.
---
 src/lib/eio/eio_main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/lib/eio/eio_main.c b/src/lib/eio/eio_main.c
index e70e83c..632d022 100644
--- a/src/lib/eio/eio_main.c
+++ b/src/lib/eio/eio_main.c
@@ -360,7 +360,14 @@ eio_shutdown(void)
 EAPI void
 eio_memory_burst_limit_set(size_t limit)
 {
+   eina_lock_take(&(memory_pool_mutex));
    memory_pool_limit = limit;
+   if (memory_pool_suspended)
+     {
+        if (memory_pool_usage < memory_pool_limit)
+          eina_condition_broadcast(&(memory_pool_cond));
+     }
+   eina_lock_release(&(memory_pool_mutex));
 }
 
 EAPI size_t

-- 


Reply via email to