generated from eclipse-score/module_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Currently, we set the waker only on the first run of JoinHandle Future. Since it is Unpin, it can be moved to a different task, leaving an old waker which will cause a wakeup of the wrong task once the child task is done.
Please:
- Create a test case that reproduces that
- once confirmed, fix implementation alogin with scheduler: Fix bug in scheduling safety task #32
Consider the above and #32
- JoinHandle shall always set the waker on its poll
- The TLS Context for the worker shall always keep a handle to the currently running task set by the worker
- JoinHandle shall check if the connected task is safety, if yes, then it shall use
current tasksafety instead of the one inpollasctx- this can cause some pesimizations in waking, but this seems to be the only way to ensure that a task that is starting a safety task can be woken into safety worker.
Please consider the above idea and develop alternative or improved proposals.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
In progress