/** * Returns true if this thread is already "doomed" to be deleted.<p> * * A OpenCms deamon Thread (the "Grim Reaper") will collect all * doomed Threads, i.e. threads that are not longer active for some * time.<p> * * @return true if this thread is already "doomed" to be deleted */ public synchronized boolean isDoomed() { if (isAlive()) { // as long as the Thread is still active it is never doomed return false; } if (m_doomed) { // not longer active, and already doomed, so rest in peace... return true; } // condemn the Thread to be collected by the grim reaper next time m_starttime = getRuntime(); m_doomed = true; return false; }
/** * Returns true if this thread is already "doomed" to be deleted.<p> * * A OpenCms deamon Thread (the "Grim Reaper") will collect all * doomed Threads, i.e. threads that are not longer active for some * time.<p> * * @return true if this thread is already "doomed" to be deleted */ public synchronized boolean isDoomed() { if (isAlive()) { // as long as the Thread is still active it is never doomed return false; } if (m_doomed) { // not longer active, and already doomed, so rest in peace... return true; } // condemn the Thread to be collected by the grim reaper next time m_starttime = getRuntime(); m_doomed = true; return false; }