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 » Stop a thread
Re: Stop a thread [message #20262 is a reply to message #20260] Thu, 05 March 2009 19:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
Unfortunately, the only safe way how to stop a thread known to us is to periodically test some shared variable for 'stop' status.

The reason is releasing of resources. To release resources, you need to call destructors, to do that correctly, you need synchronous termination.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to catch http client timeout error
Next Topic: how to exit from Socket.Read()
Goto Forum:
  


Current Time: Mon May 13 10:56:01 CEST 2024

Total time taken to generate the page: 0.02670 seconds