Added destructor to ThreadFunctor that sets the internals to known values that can be tested in isValid(). This makes it very easy to detect when a functor is being used that has been destroyed.
Added destructor to ThreadFunctor that sets the internals to known values that can be tested in isValid().
This makes it very easy to detect when a functor is being used that has been destroyed.

When isValid() is checked, it asserts if the functor has been destroyed.  This allows easy tracing in a debugger to find the error.


git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@6720 08b38cba-cd3b-11de-854e-f91c5b6e4272

vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,vancegroup-mirrors/vrjuggler,vancegroup-mirrors/vrjuggler,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,vrjuggler/vrjuggler,godbyk/vrjuggler-upstream-old,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler