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

Home » U++ Library support » U++ MT-multithreading and servers » IsFinished() for CoWork
Re: IsFinished() for CoWork [message #14634 is a reply to message #14628] Wed, 05 March 2008 09:54 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
kodos wrote on Wed, 05 March 2008 00:48


But that's the point: How should I update the GUI in my callback if I'm not allowed to?

I could poll an a variable if it is finished but then my solution with IsFinished would be easier IMHO.


The point is that only you main thread can update the GUI. If you're callback belongs to the main thread, then there is no problem with it. Create the callback member function in you main window class for example, and everything will work fine.

Did you look over reference/GuiMT example? It creates a callback at the end of the thread with Divisors::ShowResult, which then does the updating.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CPU_Cores() error
Next Topic: CoWork buggy!?
Goto Forum:
  


Current Time: Fri Jun 19 00:55:28 GMT+2 2026

Total time taken to generate the page: 0.00576 seconds