public StackTraceElement[] javaBacktrace() { if (threadImpl instanceof NativeThread) { return ((NativeThread)threadImpl).getThread().getStackTrace(); } // Future-based threads can't get a Java trace return EMPTY_STACK_TRACE; }
public boolean isAlive() { Thread thread = getThread(); if (thread != null) return thread.isAlive(); return false; }
public StackTraceElement[] javaBacktrace() { if (threadImpl instanceof NativeThread) { return ((NativeThread)threadImpl).getThread().getStackTrace(); } // Future-based threads can't get a Java trace return new StackTraceElement[0]; }
public boolean isInterrupted() { Thread thread = getThread(); if (thread != null) { return thread.isInterrupted(); } return false; }
public StackTraceElement[] javaBacktrace() { if (threadImpl instanceof NativeThread) { return ((NativeThread)threadImpl).getThread().getStackTrace(); } // Future-based threads can't get a Java trace return EMPTY_STACK_TRACE; }
public boolean isInterrupted() { Thread thread = getThread(); if (thread != null) { return thread.isInterrupted(); } return false; }
public int getPriority() { Thread thread = getThread(); if (thread != null) return thread.getPriority(); return 0; }
public void join(long timeoutMillis) throws InterruptedException { Thread thread = getThread(); if (thread != null) thread.join(timeoutMillis); }
public int getPriority() { Thread thread = getThread(); if (thread != null) return thread.getPriority(); return 0; }
public boolean isAlive() { Thread thread = getThread(); if (thread != null) return thread.isAlive(); return false; }
public boolean isAlive() { Thread thread = getThread(); if (thread != null) return thread.isAlive(); return false; }
public int getPriority() { Thread thread = getThread(); if (thread != null) return thread.getPriority(); return 0; }
public boolean isInterrupted() { Thread thread = getThread(); if (thread != null) { return thread.isInterrupted(); } return false; }
public void start() { Thread thread = getThread(); if (thread != null) thread.start(); }
public int getPriority() { Thread thread = getThread(); if (thread != null) return thread.getPriority(); return 0; }
public boolean isInterrupted() { Thread thread = getThread(); if (thread != null) { return thread.isInterrupted(); } return false; }
public StackTraceElement[] javaBacktrace() { if (threadImpl instanceof NativeThread) { return ((NativeThread)threadImpl).getThread().getStackTrace(); } // Future-based threads can't get a Java trace return new StackTraceElement[0]; }
public boolean isAlive() { Thread thread = getThread(); if (thread != null) return thread.isAlive(); return false; }
@Override public String getReportName() { String nativeName = ""; Thread thread = getThread(); if (thread != null) nativeName = thread.getName(); if (rubyName == null || rubyName.length() == 0) { return nativeName.equals("") ? "(unnamed)" : nativeName; } return nativeName.equals("") ? rubyName : rubyName + " (" + nativeName + ")"; }
@Override public String getReportName() { String nativeName = ""; Thread thread = getThread(); if (thread != null) nativeName = thread.getName(); if (rubyName == null || rubyName.length() == 0) { return nativeName.equals("") ? "(unnamed)" : nativeName; } return nativeName.equals("") ? rubyName : rubyName + " (" + nativeName + ")"; }