Package edu.jas.kern

Class PreemptStatus

java.lang.Object
edu.jas.kern.PreemptStatus

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

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

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

    Modifier and Type
    Method
    Description
    static boolean
    isAllowed.
    static void
    setAllow, set preemtive interruption to allowed status.
    static void
    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 Details

    • allowPreempt

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

    • PreemptStatus

      protected PreemptStatus()
      No public constructor.
  • Method Details

    • 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.