Skip to content

Commit d0b9948

Browse files
authored
Guard against invalid thread_status.queue
1 parent c33bc84 commit d0b9948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/blas_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ blas_queue_t *tscq;
418418

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

421-
while(!tscq) {
421+
while(!tscq || tscq == 0x1) {
422422
YIELDING;
423423

424424
if ((unsigned int)rpcc() - last_tick > thread_timeout) {

0 commit comments

Comments
 (0)