|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.MonitorControl
javax.realtime.PriorityCeilingEmulation
public class PriorityCeilingEmulation
PriorityCeilingEmulation provides an alternative monitor behaviour to the default PriorityInheritance policy. PriorityCeilingEmulation uses the priority ceiling protocol, i.e., the priority of a thread that holds a priority ceiling monitor is risen to the monitor's ceiling priority.
Constructor Summary | |
---|---|
PriorityCeilingEmulation(int ceiling)
Deprecated. RTSJ V1.0.1 use PriorityCeiling.instance(ceiling) instead. |
Method Summary | |
---|---|
int |
getCeiling()
getCeiling returns the ceiling priority for this monitor control. |
int |
getDefaultCeiling()
Deprecated. RTSJ V1.0.1 the name is misleading, use getCeiling instead. |
static PriorityCeilingEmulation |
getMaxCeiling()
getMaxCeiling returns a monitor control for priority ceiling emulation using the maximum priority (PriorityScheduler.instance().getMaxPriority()). |
static PriorityCeilingEmulation |
instance(int ceiling)
instance returns the unique instance of monitor control for priority ceiling emulation using the given ceiling priority. |
Methods inherited from class javax.realtime.MonitorControl |
---|
getMonitorControl, getMonitorControl, setMonitorControl, setMonitorControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorityCeilingEmulation(int ceiling)
require
(ceiling >= Thread.MIN_PRIORITY, ceiling <= PriorityScheduler.MAX_PRIORITY);
ensure
(Result.getCeiling() == ceiling);
ceiling
- The ceiling priority for the new monitor control.
IllegalArgumentException
- iff ceiling is not in the range
Thread.MIN_PRIORITY..PriorityScheduler.MAX_PRIORITY.Method Detail |
---|
public int getCeiling()
public int getDefaultCeiling()
public static PriorityCeilingEmulation getMaxCeiling()
The result will reside in HeapMemory.
public static PriorityCeilingEmulation instance(int ceiling)
The result will reside in HeapMemory.
The ceiling must be in the range Thread.MIN_PRIORITY through PriorityScheduler.instance().getMaxPriority().
IllegalArgumentException
- if ceiling is outside of the range
of permitted priority values.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |