Marcus Crafter wrote:
> Hi Troops,
>
> Hope all is well.
>
> I've been looking at an issue in ActiveMonitor today, where during
> disposal of the component the current thread blocks till the monitor
> thread dies (ActiveMonitor.stop()).
>
> This causes problems in our environment because our monitor interval
> is set to 30 mins, which means ActiveMonitor.stop() could take up
> to 30 mins to complete due to the current thread waiting for the
> monitor thread to complete.
>
> I changed the code to do an interrupt() instead of a join(), ie. to
> interrupt the monitor thread out of it's sleep(), and everything worked
> fine. The actual diff is below.
>
> Just wondering if there are any issues or problems with this change
> that I'm not aware of ? If so, any ideas how to fix the original
> problem ?
Go for it!
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>