File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1075,12 +1075,13 @@ void *blas_memory_alloc(int procpos){
1075
1075
1076
1076
do {
1077
1077
/* if (!memory[position].used) { */
1078
-
1079
- blas_lock (& memory [position ].lock );
1078
+ LOCK_COMMAND ( & alloc_lock );
1079
+ /* blas_lock(&memory[position].lock);*/
1080
1080
1081
1081
if (!memory [position ].used ) goto allocation ;
1082
-
1083
- blas_unlock (& memory [position ].lock );
1082
+
1083
+ UNLOCK_COMMAND (& alloc_lock );
1084
+ /* blas_unlock(&memory[position].lock);*/
1084
1085
/* } */
1085
1086
1086
1087
position ++ ;
@@ -1097,7 +1098,8 @@ void *blas_memory_alloc(int procpos){
1097
1098
1098
1099
memory [position ].used = 1 ;
1099
1100
1100
- blas_unlock (& memory [position ].lock );
1101
+ UNLOCK_COMMAND (& alloc_lock );
1102
+ /* blas_unlock(&memory[position].lock);*/
1101
1103
1102
1104
if (!memory [position ].addr ) {
1103
1105
do {
You can’t perform that action at this time.
0 commit comments