From ba1f91f17b3acd76456865cc01218857ac20b072 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 9 Sep 2017 20:30:33 +0200 Subject: [PATCH] Convert another caller of "allocation" to LOCK_COMMAND ... as the "allocation" code jumped to now does UNLOCK_COMMAND instead of blas_unlock --- driver/others/memory.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index a32d188340..a4d26b0e1f 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1056,12 +1056,13 @@ void *blas_memory_alloc(int procpos){ do { if (!memory[position].used && (memory[position].pos == mypos)) { - - blas_lock(&memory[position].lock); + LOCK_COMMAND(&alloc_lock); +/* blas_lock(&memory[position].lock);*/ if (!memory[position].used) goto allocation; - blas_unlock(&memory[position].lock); + UNLOCK_COMMAND(&alloc_lock); +/* blas_unlock(&memory[position].lock);*/ } position ++;