Convert another caller of "allocation" to LOCK_COMMAND
... as the "allocation" code jumped to now does UNLOCK_COMMAND instead of blas_unlock
@@ -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 ++;
