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 » Major redesign of MT in GUI
Major redesign of MT in GUI [message #21382] Sat, 16 May 2009 19:40 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Up to now, the only allowed interaction with non-main threads and GUI was through sending events.

The new approach introduces "Ctrl::EnterMutex" and "Ctrl::LeaveMutex" methods that can be used to protect shared access to any widget (and helper class Ctrl::Lock that does so on for block using contructors/destructors).

Means accessing widget data or changing widget content in non-main thread is now much more simple.

For now (maybe only today Smile, there are certain methods that cannot be called by non-main thread - those that deal with opening new windows and events (event loops). It is because in Win32 it is impossible (for U++) to run them in any other thread than main.

I will probably resolve this situation by performing such requests in main thread.... (via new planned "Ctrl::Call function that will make possible to 'call' code in main thread while waiting for its completition).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Code Navigator refactored
Next Topic: SVN UPDATE & .deb BUILD : Revision 951 - 2009-03-12
Goto Forum:
  


Current Time: Tue May 14 00:19:03 CEST 2024

Total time taken to generate the page: 0.01989 seconds