Skip to content

Commit ba1f91f

Browse files
authored
Convert another caller of "allocation" to LOCK_COMMAND
... as the "allocation" code jumped to now does UNLOCK_COMMAND instead of blas_unlock
1 parent f460776 commit ba1f91f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

driver/others/memory.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -1056,12 +1056,13 @@ void *blas_memory_alloc(int procpos){
10561056

10571057
do {
10581058
if (!memory[position].used && (memory[position].pos == mypos)) {
1059-
1060-
blas_lock(&memory[position].lock);
1059+
LOCK_COMMAND(&alloc_lock);
1060+
/* blas_lock(&memory[position].lock);*/
10611061

10621062
if (!memory[position].used) goto allocation;
10631063

1064-
blas_unlock(&memory[position].lock);
1064+
UNLOCK_COMMAND(&alloc_lock);
1065+
/* blas_unlock(&memory[position].lock);*/
10651066
}
10661067

10671068
position ++;

0 commit comments

Comments
 (0)