On 2009-02-24, Steve Holden <st...@holdenweb.com> wrote: >> However, this cannot happen. This application is running >> multiple threads (10+) and every thread monitors the global >> "stop_requested" flag. If there was an unexpected error in the >> service, stop_requested.set() is called. It will stop all >> threads and exit the process. stop_requested.clear() is NEVER >> called, so the while loop should have not been ended. So what >> is happening here? It drives me crazy. > > Time to get a stuffed toy and go through your code, explaining > to the toy exactly why your code is right and nothing can go > wrong. With luck, within half an hour you will realize what > you are doing wrong ...
It works with a person as well as stuffed toys -- but trying to order a person on the internet gets you in a lot more trouble. It's also a little more embarassing when you realize your mistake in front of a person. OTOH, sometimes a person will ask an enlightening question; but, sometimes they just make unhelpfull wisecracks. It's a tough choice. -- Grant Edwards grante Yow! OVER the underpass! at UNDER the overpass! visi.com Around the FUTURE and BEYOND REPAIR!! -- http://mail.python.org/mailman/listinfo/python-list