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
Re: Major redesign of MT in GUI [message #21390 is a reply to message #21387] Sun, 17 May 2009 23:11 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Actually, there is single mutex for everything. That is required by X11 anyway and semi-required by Win32.

In fact, after some thinking, I have decided to scratch the idea of "per widget" locking and replace this global mutex available.

Also, Ctrl::Call is now implemented and thus you can absolutely anything in threads with GUI (but some things are being performed in main thread using Call).

So the final rule for MT GUI programming is pretty simple:

If you are going to call any method or GUI function, you have to lock the scope using GuiLock helper guard (or EnterGuiMutex/LeaveGuiMutex pair).

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: Sun Aug 24 08:10:38 CEST 2025

Total time taken to generate the page: 0.05456 seconds