Closed computablee closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
1eb0423
) 99.22% compared to head (4203bdd
) 99.25%. Report is 4 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Which issue are you addressing?
Closes #49
How have you addressed the issue?
There's been a lot of changes. To use taskwait from within a task, you must specify which tasks to wait on. Taskwait keeps track of whether or not it's being called from parallel space or from task space, and will selectively enact barriers depending on the behavior. If a task is being called from global space, it's treated as a barrier, but if called from within a task, it won't act as a barrier.
If you don't specify the tasks to wait on when calling taskwait from within a task, an exception is thrown. Specifying the tasks to wait on does not affect how tasks are scheduled-- the calling thread begins executing tasks as normal, but returns from taskwait when it detects that the selected tasks have completed instead of waiting when the task queue is empty.
How have you tested your patch?
Two new tests have been added, which checks to make sure that you can wait on tasks from within a task via taskwait, and another test to make sure that improper taskwait usage throws an exception.