Merge pull request #1785 from brada4/develop

address #1782 2nd loop
This commit is contained in:
Martin Kroeker 2018-10-05 08:25:38 +02:00 committed by GitHub
commit a980953bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2587,20 +2587,20 @@ void *blas_memory_alloc(int procpos){
position = 0;
LOCK_COMMAND(&alloc_lock);
do {
/* if (!memory[position].used) { */
LOCK_COMMAND(&alloc_lock);
/* blas_lock(&memory[position].lock);*/
if (!memory[position].used) goto allocation;
UNLOCK_COMMAND(&alloc_lock);
/* blas_unlock(&memory[position].lock);*/
/* } */
position ++;
} while (position < NUM_BUFFERS);
UNLOCK_COMMAND(&alloc_lock);
goto error;