Package org.jruby.exceptions

Examples of org.jruby.exceptions.ThreadKill


        if (killed) throwThreadKill();
        if (receivedException != null) receivedAnException(context);
    }
   
    private void throwThreadKill() {
        throw new ThreadKill();
    }
View Full Code Here


       
        rubyThread.killed = true;
        // attempt to decriticalize all if we're the critical thread
        receiver.getRuntime().getThreadService().setCritical(false);
       
        throw new ThreadKill();
    }
View Full Code Here

    public void pollThreadEvents(ThreadContext context) {
        if (mail != null) checkMail(context);
    }
   
    private static void throwThreadKill() {
        throw new ThreadKill();
    }
View Full Code Here

        synchronized (rubyThread) {
            rubyThread.status = Status.ABORTING;
            rubyThread.mail = null;
            receiver.getRuntime().getThreadService().setCritical(false);
            throw new ThreadKill();
        }
    }
View Full Code Here

    public void pollThreadEvents(ThreadContext context) {
        if (mail != null) checkMail(context);
    }
   
    private static void throwThreadKill() {
        throw new ThreadKill();
    }
View Full Code Here

        synchronized (rubyThread) {
            rubyThread.status.set(Status.ABORTING);
            rubyThread.mail = null;
            receiver.getRuntime().getThreadService().setCritical(false);
            throw new ThreadKill();
        }
    }
View Full Code Here

    private boolean anyInterrupted() {
        return Thread.interrupted() || (interruptFlag & ~interruptMask) != 0;
    }
   
    private static void throwThreadKill() {
        throw new ThreadKill();
    }
View Full Code Here

TOP

Related Classes of org.jruby.exceptions.ThreadKill

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.