src/java/fr/jayasoft/ivy/Ivy.java
/**
     * Interrupts the current running operation in the given operating thread, 
     * no later than interruptTimeout milliseconds after the call
     */
Interrupts the current running operation in the given operating thread,
no later than interruptTimeout milliseconds after the call
Interrupts the current running operation in the given operating thread no later than interruptTimeout milliseconds after the call
public void interrupt(Thread operatingThread) {
		if (operatingThread != null && operatingThread.isAlive()) {
    		if (operatingThread == Thread.currentThread()) {
    			throw new IllegalStateException("cannot call interrupt from ivy operating thread");
    		}
			Message.verbose("interrupting operating thread...");
    		operatingThread.interrupt();
    		synchronized (this) {
    			_interrupted = true;
    		}
    		try {
				Message.verbose("waiting clean interruption of operating thread");
    			operatingThread.join(_interruptTimeout);
			} catch (InterruptedException e) {
			}
			if (operatingThread.isAlive()) {
				Message.warn("waited clean interruption for too long: stopping operating thread");
				operatingThread.stop();
			}
    		synchronized (this) {
    			_interrupted = false;
    		}
    	}
	}
public void interrupt ( Thread operatingThread ) { if ( operatingThread != null && operatingThread . isAlive ( ) ) { if ( operatingThread == Thread . currentThread ( ) ) { throw new IllegalStateException ( "cannot call interrupt from ivy operating thread" ) ; } Message . verbose ( "interrupting operating thread..." ) ; operatingThread . interrupt ( ) ; synchronized ( this ) { _interrupted = true ; } try { Message . verbose ( "waiting clean interruption of operating thread" ) ; operatingThread . join ( _interruptTimeout ) ; } catch ( InterruptedException e ) { } if ( operatingThread . isAlive ( ) ) { Message . warn ( "waited clean interruption for too long: stopping operating thread" ) ; operatingThread . stop ( ) ; } synchronized ( this ) { _interrupted = false ; } } }
Interrupts the current running operation in the given operating thread,
 no later than interruptTimeout milliseconds after the call
Interrupts the current running operation in the given operating thread no later than interruptTimeout milliseconds after the call