public void run() { try { while (true) { Thread[] fillMe = new Thread[1000]; ThreadUtils.enumerateAll( fillMe ); for(int i = 0; fillMe[i] != null; ++i) { if (fillMe[i].getName().indexOf("RunnableQueue.TaskThread") >= 0) { fillMe[i].interrupt(); System.out.println("INTERRUPTED!"); interruptedThreads.add( fillMe[i] ); break; } } Thread.sleep(1000); } } catch ( Exception e ) { e.printStackTrace(); } } }
if ( synchronous || broken ) //if we're broken, our taskRunner may be dead, so we destroy synchronously if ( logger.isLoggable(MLevel.FINEST) && !broken && Boolean.TRUE.equals( ThreadUtils.reflectiveHoldsLock( this ) ) ) logger.log( MLevel.FINEST, this + ": Destroyiong a resource on an active pool, synchronousy while holding pool's lock! " +
if ( synchronous || broken ) //if we're broken, our taskRunner may be dead, so we destroy synchronously if ( logger.isLoggable(MLevel.FINEST) && !broken && Boolean.TRUE.equals( ThreadUtils.reflectiveHoldsLock( this ) ) ) logger.log( MLevel.FINEST, this + ": Destroyiong a resource on an active pool, synchronousy while holding pool's lock! " +
if ( synchronous || broken ) //if we're broken, our taskRunner may be dead, so we destroy synchronously if ( logger.isLoggable(MLevel.FINEST) && !broken && Boolean.TRUE.equals( ThreadUtils.reflectiveHoldsLock( this ) ) ) logger.log( MLevel.FINEST, this + ": Destroyiong a resource on an active pool, synchronousy while holding pool's lock! " +
if ( synchronous || broken ) //if we're broken, our taskRunner may be dead, so we destroy synchronously if ( logger.isLoggable(MLevel.FINEST) && !broken && Boolean.TRUE.equals( ThreadUtils.reflectiveHoldsLock( this ) ) ) logger.log( MLevel.FINEST, this + ": Destroyiong a resource on an active pool, synchronousy while holding pool's lock! " +