public void run() { while (isSuspended) try { Thread.sleep(2000); } catch (Exception e) { } if ((!CMSecurity.isDisabled("UTILITHREAD")) && (!CMSecurity.isDisabled("THREADTHREAD"))) { checkHealth(); // Resources.removeResource("SYSTEM_HASHED_MASKS"); // NOTE: Could use a ReferenceQueue to clean up gced references in the SYSTEM_HASHED_MASKS // hashtable still. } }
public boolean activate() { if (thread == null) thread = new SupportThread( "THThreads", MudHost.TIME_UTILTHREAD_SLEEP, this, CMSecurity.isDebugging("UTILITHREAD")); if (!thread.started) thread.start(); mainTime.start(); /* if(exitThread==null) { exitThread= exitThread.start(); } */ return true; }