Future of D
Imperatorn
johan_forsberg_86 at hotmail.com
Sun Oct 29 21:46:51 UTC 2023
On Sunday, 29 October 2023 at 21:32:18 UTC, Jonathan M Davis
wrote:
> On Sunday, October 29, 2023 3:03:00 PM MDT Imperatorn via
> Digitalmars-d wrote:
>> [...]
>
> You have yet to explain why that information should be made
> public. Even if you can get the task status without breaking
> thread-safety, the information is still likely to be
> out-of-date by the time you actually try to do anything based
> on it, because once you have the state information out of the
> Task, that state information is no longer synchronized across
> threads. It's just a copy of what the state was when the state
> was copied across threads. So, actually making it possible to
> get the state information in a thread-safe manner doesn't fix
> the problem that trying to do anything based on that
> information involves race conditions.
>
> [...]
Because it would be wonderful. I could use it to draw a rainbow
on the screen.
More information about the Digitalmars-d
mailing list