Octavian Rasnita wrote:

  Hi,

I guess this happends because my app uses threads and I don't know how to
end them even though sometimes I would like to kill them.

  The correct way to shutdown a threaded app is to ask the threads to
terminate, either setting a global variable or sending them a 'terminate' message (I do that by enqueuing a 'terminate' message
using Thread::Queue::Any::Monitored); after that you need to call
->join on each thread (beware that ->join blocks, so it will
freeze your application until the thread terminates).

HTH
Mattia

Reply via email to