atrstm

Load and structure a combustion gas mixture
git clone git://git.meso-star.fr/atrstm.git
Log | Files | Refs | README | LICENSE

commit 322d3145e26a1b71579cba02f8c0f35e636095df
parent 99695f0dfddef2187f5c78db6d80539aff4ecaca
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 20 Jan 2021 17:22:31 +0100

Fix an pool_new_partition routine

Thread safety was not correctly ensured

Diffstat:
Msrc/atrstm_partition.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/atrstm_partition.c b/src/atrstm_partition.c @@ -104,7 +104,7 @@ pool_new_partition(struct pool* pool, const size_t ipart) ASSERT(pool); mutex_lock(pool->mutex); - if(is_list_empty(&pool->parts_free)) { + while(is_list_empty(&pool->parts_free)) { cond_wait(pool->cond_new, pool->mutex); } if(pool->error) {