Browse Source

Merge pull request #4587 from mseminatore/win_queue_fix

Address Windows thread server re-entrant queue bug #4582
tags/v0.3.27
Martin Kroeker GitHub 1 year ago
parent
commit
b1e8ba5017
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      driver/others/blas_server_win32.c

+ 4
- 4
driver/others/blas_server_win32.c View File

@@ -409,14 +409,14 @@ int exec_blas_async(BLASLONG pos, blas_queue_t *queue) {
}
else
{
blas_queue_t *next_item = work_queue;
blas_queue_t *queue_item = work_queue;

// find the end of the work queue
while (next_item)
next_item = next_item->next;
while (queue_item->next)
queue_item = queue_item->next;

// add new work to the end
next_item = queue;
queue_item->next = queue;
}

LeaveCriticalSection(&queue_lock);


Loading…
Cancel
Save