Skip to content

Commit

Permalink
fix: yield before context switching (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxilef authored Dec 17, 2023
1 parent 53e1f4f commit 3030e2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Task : public AbstractTask {
}

void yield() override {
::yield();
cont_suspend(&context);
}

Expand Down

0 comments on commit 3030e2e

Please sign in to comment.