Package edu.jas.kern

Class PreemptStatus


  • public class PreemptStatus
    extends java.lang.Object
    PreemptStatus, defines global status for preemptive interruption handling.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean allowPreempt
      Global status flag.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PreemptStatus()
      No public constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isAllowed()
      isAllowed.
      static void setAllow()
      setAllow, set preemtive interruption to allowed status.
      static void setNotAllow()
      setNotAllow, set preemtive interruption to not allowed status.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • allowPreempt

        private static volatile boolean allowPreempt
        Global status flag.
    • Constructor Detail

      • PreemptStatus

        protected PreemptStatus()
        No public constructor.
    • Method Detail

      • isAllowed

        public static boolean isAllowed()
        isAllowed.
        Returns:
        true, preemtive interruption is allowed, else false.
      • setAllow

        public static void setAllow()
        setAllow, set preemtive interruption to allowed status.
      • setNotAllow

        public static void setNotAllow()
        setNotAllow, set preemtive interruption to not allowed status.