U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » AsyncWork
Re: AsyncWork [message #48870 is a reply to message #48867] Tue, 17 October 2017 08:55 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
Thank you very much Smile

In addition GuiLock is easier and safer than sharing variables.

It is just a matter of using it wisely.
For example, this would be forbidden:

EditInt edit;
int count = 0;
while(true) {
	count++;
	GuiLock __;
	edit <<= count;
}

In addition if a GUI action (pushing a button) launches a Thread, it would be necessary to disable the button to avoid pushing it again while Thread is running.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide: Repository sync and repo file version history refactored
Next Topic: plugin/lz4
Goto Forum:
  


Current Time: Sun Jul 05 10:38:29 GMT+2 2026

Total time taken to generate the page: 0.00470 seconds