243244245246247248249
if (killed) throwThreadKill(); if (receivedException != null) receivedAnException(context); } private void throwThreadKill() { throw new ThreadKill(); }
531532533534535536537
rubyThread.killed = true; // attempt to decriticalize all if we're the critical thread receiver.getRuntime().getThreadService().setCritical(false); throw new ThreadKill(); }
334335336337338339340
public void pollThreadEvents(ThreadContext context) { if (mail != null) checkMail(context); } private static void throwThreadKill() { throw new ThreadKill(); }
628629630631632633634635
synchronized (rubyThread) { rubyThread.status = Status.ABORTING; rubyThread.mail = null; receiver.getRuntime().getThreadService().setCritical(false); throw new ThreadKill(); } }
415416417418419420421
719720721722723724725726
synchronized (rubyThread) { rubyThread.status.set(Status.ABORTING); rubyThread.mail = null; receiver.getRuntime().getThreadService().setCritical(false); throw new ThreadKill(); } }
610611612613614615616
private boolean anyInterrupted() { return Thread.interrupted() || (interruptFlag & ~interruptMask) != 0; } private static void throwThreadKill() { throw new ThreadKill(); }