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

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: 14291
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: Tue Oct 13 14:22:16 GMT+2 2026

Total time taken to generate the page: 0.00868 seconds