Message2306
The common solution for things like this is to have a simple app-specific protocol involving. The thread watches a specific variable that means "please exit"; when there's a need to kill the thread this variable is set. The thread just has to be careful to check this variable in each unbounded loop. This requires a bit of discipline; but (as you say) there are too many things a programmer can do to break the program to try and prevent them all. |
|
Date |
User |
Action |
Args |
2007-08-23 13:52:03 | admin | link | issue221115 messages |
2007-08-23 13:52:03 | admin | create | |
|