Convert another caller of "allocation" to LOCK_COMMAND
... as the "allocation" code jumped to now does UNLOCK_COMMAND instead of blas_unlock
This commit is contained in:
parent
f460776f0f
commit
ba1f91f17b
|
@ -1056,12 +1056,13 @@ void *blas_memory_alloc(int procpos){
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (!memory[position].used && (memory[position].pos == mypos)) {
|
if (!memory[position].used && (memory[position].pos == mypos)) {
|
||||||
|
LOCK_COMMAND(&alloc_lock);
|
||||||
blas_lock(&memory[position].lock);
|
/* blas_lock(&memory[position].lock);*/
|
||||||
|
|
||||||
if (!memory[position].used) goto allocation;
|
if (!memory[position].used) goto allocation;
|
||||||
|
|
||||||
blas_unlock(&memory[position].lock);
|
UNLOCK_COMMAND(&alloc_lock);
|
||||||
|
/* blas_unlock(&memory[position].lock);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
position ++;
|
position ++;
|
||||||
|
|
Loading…
Reference in New Issue