Examples of VmThread


Examples of org.jnode.vm.scheduler.VmThread

    private static final void setPriority(Thread instance, int priority) {
        ((VmThread) instance.vmThread).setPriority(priority);
    }

    private static final boolean isRunning(Thread instance) {
        VmThread vmt = (VmThread) instance.vmThread;
        return vmt.isRunning() || vmt.isYielding();
    }
View Full Code Here

Examples of org.jnode.vm.scheduler.VmThread

    private static StackTraceElement[] getStackTrace0(Thread instance) {
        return NativeThrowable.backTrace2stackTrace(VmThread.getStackTrace((VmThread) instance.vmThread));
    }

    private static Thread currentThread() {
        VmThread current = VmThread.currentThread();
        if (current != null) {
            return current.asThread();
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.jnode.vm.scheduler.VmThread

            return null;
        }
    }

    private static boolean interrupted() {
        VmThread current = VmThread.currentThread();
        if (current != null) {
            return current.isInterrupted(true);
        } else {
            return false;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.