diff options
author | Christian Cunningham <cc@localhost> | 2022-03-12 14:50:20 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-12 14:50:20 -0800 |
commit | ebefd4f80c4f50a4d90a002c5fbe9189c47647ae (patch) | |
tree | a466d175df7ab66c8259e9bf7f1acabab61a2c28 /src/sys | |
parent | 468167fce9d64cb8f08832dd7586dd55f9200fb8 (diff) |
Better Testing
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/schedule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/schedule.c b/src/sys/schedule.c index 287091c..9540d3d 100644 --- a/src/sys/schedule.c +++ b/src/sys/schedule.c @@ -202,6 +202,7 @@ void yield(void) // thus any threads of the same priority can be run first unsigned char priority = rthread->priority; struct ThreadQueue* trq = &scheduler.ready[priority]; + trq->read.entry->thread = 0; trq->read.entry = trq->read.entry->next; trq->write.entry->thread = rthread; trq->write.entry = trq->write.entry->next; |