How to send ownerTid into a parallel foreach loop?

Kagamin spam at here.lot
Sat Jun 27 18:38:05 UTC 2020


On Saturday, 27 June 2020 at 07:51:21 UTC, adnan338 wrote:
> On Saturday, 27 June 2020 at 07:31:56 UTC, Kagamin wrote:
>> std.concurrency is for noninteractive appications, the 
>> approach with gui timer was the correct one.
>
> Thank you. That works but my progress bar is sometimes getting 
> stuck because of a possible data race.
> See 
> https://forum.dlang.org/post/gacweulvbyorksetidcj@forum.dlang.org

Sometimes? In that code you write the progress variable only 
once, so it doesn't change after that. Nothing else can possibly 
happen there with or without multithreading.


More information about the Digitalmars-d-learn mailing list