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 » DnD hangs in MT Refresh()ing
Re: DnD hangs in MT Refresh()ing [message #24915 is a reply to message #24894] Thu, 04 February 2010 12:37 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi mirek,

i didn't quite get the point.. why should Start not return, it simply posts 10 tasks to the CoWork, which is not blocking normally..(not permanentl, besides accessing internals of CoWork protected by internal Critical Section).

the indicater for closinfg was the dtor of App() setting a flag, by that timethe application was dying, the threads could not comlete their Refresh.. thus not releasing GuiLock. and the dtor could not complete cause of CoWork dtor Finish() call. but why should the App dtor run in GuiLock mode??

nevertheless, here is a version using the same waiter Thread trick, recently used in my WorkQueueTest example..

this one should quit correctly..which might be a general approach of how to close/shutdown an MT application with other threads using GuiLock __;..
  • Attachment: CoWork.rar
    (Size: 7.39KB, Downloaded 232 times)
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT with speed optimization fails
Next Topic: what about WorkQueue : public CoWork
Goto Forum:
  


Current Time: Fri May 10 14:03:02 CEST 2024

Total time taken to generate the page: 0.02880 seconds