Package edu.jas.kern
Class PreemptStatus
java.lang.Object
edu.jas.kern.PreemptStatus
PreemptStatus, defines global status for preemptive interruption handling.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAllowed.static void
setAllow()
setAllow, set preemtive interruption to allowed status.static void
setNotAllow, set preemtive interruption to not allowed status.
-
Field Details
-
allowPreempt
private static volatile boolean allowPreemptGlobal 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.
-