Skip to content

Commit b1e8ba5

Browse files
authored
Merge pull request #4587 from mseminatore/win_queue_fix
Address Windows thread server re-entrant queue bug #4582
2 parents 8267fcf + b0ad8a7 commit b1e8ba5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver/others/blas_server_win32.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,14 @@ int exec_blas_async(BLASLONG pos, blas_queue_t *queue) {
409409
}
410410
else
411411
{
412-
blas_queue_t *next_item = work_queue;
412+
blas_queue_t *queue_item = work_queue;
413413

414414
// find the end of the work queue
415-
while (next_item)
416-
next_item = next_item->next;
415+
while (queue_item->next)
416+
queue_item = queue_item->next;
417417

418418
// add new work to the end
419-
next_item = queue;
419+
queue_item->next = queue;
420420
}
421421

422422
LeaveCriticalSection(&queue_lock);

0 commit comments

Comments
 (0)