We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78c99d5 + 3439158 commit a980953Copy full SHA for a980953
driver/others/memory.c
@@ -2587,20 +2587,20 @@ void *blas_memory_alloc(int procpos){
2587
2588
position = 0;
2589
2590
+ LOCK_COMMAND(&alloc_lock);
2591
do {
2592
/* if (!memory[position].used) { */
- LOCK_COMMAND(&alloc_lock);
2593
/* blas_lock(&memory[position].lock);*/
2594
2595
if (!memory[position].used) goto allocation;
2596
2597
- UNLOCK_COMMAND(&alloc_lock);
2598
/* blas_unlock(&memory[position].lock);*/
2599
/* } */
2600
2601
position ++;
2602
2603
} while (position < NUM_BUFFERS);
+ UNLOCK_COMMAND(&alloc_lock);
2604
2605
goto error;
2606
0 commit comments