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 » Developing U++ » U++ Developers corner » Ide MT
Re: Ide MT [message #31237 is a reply to message #31230] Wed, 16 February 2011 12:30 Go to previous messageGo to previous message
raxvan is currently offline  raxvan
Messages: 60
Registered: December 2009
Member
mirek wrote on Wed, 16 February 2011 11:11


Problem is, with MT and CoWork, there is absolutely no guarantee that it will run in separate thread...

If you really feel like you absolutely need to run something in separate thread, then create Thread and start it Smile



Ow , i had no idea about that. Perhaps CoWork should always run tasks in a separate thread. Initially i was going to use a Thread but i found out that CoWork was much easier to use.

mirek wrote on Wed, 16 February 2011 11:11


But there are many catches with MT and GUI. E.g. something as trivial as hitting close button of TheIDE would cause you a lot of pain...



I think the best solution would be the one Honza proposed:
"provide some generic way to allow such tasks to run using callbacks and ProcessEvents() in ST and Threads in MT, so that in both cases maximum efficiency would be achieved."

In any case, The support for MT should be a added because CPU-s will probably not get a lot faster, and adding more features will not make thing easier.

Raxvan.


92b48bf94855483bb4cec8bcc8c0c933
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BackgroundTask
Next Topic: Linux anti-aliasing fonts problem
Goto Forum:
  


Current Time: Sun Apr 27 10:32:18 CEST 2025

Total time taken to generate the page: 0.00522 seconds