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 » U++ Library support » U++ MT-multithreading and servers » calling back a function after finishing a thread
calling back a function after finishing a thread [message #17725] Wed, 27 August 2008 16:10 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

i want to callback a function when some thread finishes

how can i do that??

i mean i want to callback it in the main thread
Re: calling back a function after finishing a thread [message #17729 is a reply to message #17725] Wed, 27 August 2008 16:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
This is not really possible. Basically, what you want here is "interrupt" Smile

It is however possible to callback main GUI thread, using PostCallback. In that case, callback will get invoked when GUI thread returns from processing the GUI event.

Mirek
Re: calling back a function after finishing a thread [message #17754 is a reply to message #17729] Thu, 28 August 2008 00:57 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

And this last solution is quit good. Because generally responding to ueser event is much more important than some background process.
Re: calling back a function after finishing a thread [message #17761 is a reply to message #17754] Thu, 28 August 2008 09:19 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

thanks alot alot alot Very Happy Very Happy

you solved my main proplem ...Thanks Again
Previous Topic: two threads make error
Next Topic: using gates but program lags
Goto Forum:
  


Current Time: Thu Mar 28 09:36:11 CET 2024

Total time taken to generate the page: 0.01498 seconds