Skip to content

Commit

Permalink
Guard against invalid thread_status.queue
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Jun 30, 2024
1 parent c33bc84 commit d0b9948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/others/blas_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ blas_queue_t *tscq;

tscq = atomic_load_queue(&thread_status[cpu].queue);

while(!tscq) {
while(!tscq || tscq == 0x1) {
YIELDING;

if ((unsigned int)rpcc() - last_tick > thread_timeout) {
Expand Down

0 comments on commit d0b9948

Please sign in to comment.