I have read that I can use asynchronous calls with polling, especially when the caller thread serves the GUI. Can not see because:
while (asyncResult_.Iscompleted == incorrect) // it stops the GUI thread {} <}
How should this be good for this purpose? I need to update my GUI status bar every time Damon Thread has made some progress ..
When the loop prevents the GUI thread, when it does, you do not want to do this.
If you need to vote, it would be better to set the timer and check if the timer was completed when the fire was completed. Without a timer problem, there may be a small resolution (for example 100 ms), unless you do much work during each tick.
However, I think that you will be better, you will do so, you do not need to vote and as soon as your workload is done, it gets notified.
Comments
Post a Comment