From: Mark M. <mie...@gm...> - 2010-01-24 01:03:19
|
On Sat, Jan 23, 2010 at 4:29 PM, Rick McGuire <obj...@gm...> wrote: > Mark, looking through other parts of the code that post the > terminationSem, the test is for allActivities->items() <= 1, not == 0. > You might want to try that change to see if it makes your hang go > away. Okay. But what I see in InterpreterInstance::detachThread(RexxActivity *activity) is that on this test: if (activity->isNestedAttach()) { // if we reused the activity because of a nested callback attach, then // we just decrement the nesting count and return without cleaning up // any resources. activity->returnAttach(); return true; } isNestedAttach() is true, so it returns and does not get to this code. // Was this the last detach of an thread? Signal the shutdown event if (allActivities->items() == 0 && terminating) { terminationSem.post(); } -- Mark Miesfeld |