Without risking the case of the 2 tasks running on the same thread and having them both stopped.
I want the first task to wait until another task finishes some action. After the second task is done with its action, it should wake the first task up and continue working from where it stopped. The first task should be waked up as well if the first task didn't do the action after a certain time.
Now, the major problem I am having is that since both are tasks, not threads, most solutions I found looks like they stop the thread, not the task only. So, it could be the case that both tasks be running on the same thread, and thus when I make the first task wait, both wait and it timeouts anyway.
They've told outlets who got review units that it isn't. Partially because they believe that contributes to closed ecosystems. GamersNexus also believes this is because Valve's fighting a monopolistic practices lawsuit in Europe right now. They've also never subsidized any of their past hardware efforts and well, they definitely aren't subsidizing the Steam Deck right now.
(macOS) Screen zoom was broken for me in beta 1 and it's now working properly in beta 2. In terms of performance and UI design/consistency, these betas are already much better than Tahoe.
Question
kInG aLeXo
Without risking the case of the 2 tasks running on the same thread and having them both stopped.
I want the first task to wait until another task finishes some action. After the second task is done with its action, it should wake the first task up and continue working from where it stopped. The first task should be waked up as well if the first task didn't do the action after a certain time.
Now, the major problem I am having is that since both are tasks, not threads, most solutions I found looks like they stop the thread, not the task only. So, it could be the case that both tasks be running on the same thread, and thus when I make the first task wait, both wait and it timeouts anyway.
Is there a clean solution around this ?
Thanks;
Link to comment
https://www.neowin.net/forum/topic/1133908-c-how-to-make-a-task-wait-until-other-task-wakes-it-up-or-timeout/Share on other sites
4 answers to this question
Recommended Posts