-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Execute pending tasks on each loop iteration
Pending tasks are resumed. If they complete, they're added to the `dead' table where they will later be collected (this is done to avoid modifying the `pending' table while iterating over it). The runtime does not signal exit unless no pending and no blocked tasks exist. This may need slight adjustments when we introduce awaiting on tasks, as it currently wouldn't handle structured concurrency correctly if await() was called.
- Loading branch information
Showing
3 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef LIBLEGE_TASK_HPP | ||
#define LIBLEGE_TASK_HPP | ||
|
||
#define LEGE_TASK_ENV_NAME "lege.task.env" | ||
#define LEGE_TASK_MT_NAME "lege.task.mt" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters