GtkD code review - How to update a progressbar using data sharing concurrency

Ali Çehreli acehreli at yahoo.com
Mon Jun 22 17:21:38 UTC 2020


On 6/21/20 5:52 AM, adnan338 wrote:

>> I am trying to figure out how to prevent this data race.

I still like the std.concurrency method I used here:

   https://forum.dlang.org/post/rkitcprqvslexgqafqeh@forum.dlang.org

The only difference is that your individual progresses are from 0% to 
100%. The example can be changed easily to report 100% once at the end 
of each download.

Ali


More information about the Digitalmars-d-learn mailing list