eio: check if we need to wake up thread when the memory limit is changed.

This commit is contained in:
Cedric BAIL 2014-03-07 16:49:14 +09:00
parent 1b1e0450a2
commit 20d95413c3
1 changed files with 7 additions and 0 deletions

View File

@ -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