Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » AsyncWork
Re: AsyncWork [message #48871 is a reply to message #48870] Tue, 17 October 2017 13:33 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 17 October 2017 08:55
Thank you very much Smile

In addition GuiLock is easier and safer than sharing variables.


Actually, GuiLock is exactly about sharing variables - all global variables of GUI...



Quote:

For example, this would be forbidden:

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



Not quite sure why this should be forbidden. This is OK, from framework perspective. Of course, it would probably be weird if user tried to write something into the field in the same time, but it is legal and would work just as expected.

Quote:

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.


Definitely. But that is not U++ responsibility, that is about application design.

Mirek
 
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: Fri May 10 01:48:52 CEST 2024

Total time taken to generate the page: 0.01671 seconds