Merge pull request #4587 from mseminatore/win_queue_fix
Address Windows thread server re-entrant queue bug #4582
This commit is contained in:
commit
b1e8ba5017
|
@ -409,14 +409,14 @@ int exec_blas_async(BLASLONG pos, blas_queue_t *queue) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
blas_queue_t *next_item = work_queue;
|
blas_queue_t *queue_item = work_queue;
|
||||||
|
|
||||||
// find the end of the work queue
|
// find the end of the work queue
|
||||||
while (next_item)
|
while (queue_item->next)
|
||||||
next_item = next_item->next;
|
queue_item = queue_item->next;
|
||||||
|
|
||||||
// add new work to the end
|
// add new work to the end
|
||||||
next_item = queue;
|
queue_item->next = queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
LeaveCriticalSection(&queue_lock);
|
LeaveCriticalSection(&queue_lock);
|
||||||
|
|
Loading…
Reference in New Issue