|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.lth.cs.realtime.RTSystem
License
Field Summary | |
(package private) static int |
defaultEventBufferSize
|
(package private) static int |
lag
Application time lag compared to system real time. |
(package private) static int |
maxEventBufferSize
|
(package private) static int |
seq
Tick counter for hidden thread below. |
(package private) static int |
tickMillis
|
(package private) static int |
tickNanos
|
protected static int |
tol
Permitted delay for ticker thread before lag increases. |
Fields inherited from interface se.lth.cs.realtime.RTSystemProperties |
DEPLOYED, NATIVE_SEM, OS_TICK_MICRO, PRIORITY_BASED, PRIORITY_STRICT, TIMEOUT_MS, TIMEOUT_NS |
Constructor Summary | |
RTSystem()
|
Method Summary | |
static long |
currentTimeMillis()
Obtain current 'real' time. |
static int |
getDefaultEventBufferSize()
|
static int |
getMaxEventBufferSize()
|
static int |
getTickMillis()
|
static int |
getTickNanos()
|
static void |
sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. |
static void |
sleep(long millis,
int nanos)
Causes the currently executing thread to sleep (cease execution) for the specified number of milliseconds plus the specified number of nanoseconds. |
static void |
sleepUntil(long wakeUpTime)
Causes the currently executing thread to sleep (temporarily cease execution) until the specified moment in time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static int defaultEventBufferSize
static transient volatile int lag
static int maxEventBufferSize
static transient volatile int seq
static int tickMillis
static int tickNanos
protected static transient volatile int tol
Constructor Detail |
public RTSystem()
Method Detail |
public static long currentTimeMillis()
System.currentTimeMillis()
. For
any two subsequent calls (from any threads), the second call is
guaranteed to return a value greater than or equal to the value
returned from the first call. That is, the time never decreases.
public static int getDefaultEventBufferSize()
public static int getMaxEventBufferSize()
public static int getTickMillis()
public static int getTickNanos()
public static void sleep(long millis) throws RTInterrupted, RTDelayed
millis
- the length of time to sleep in milliseconds.
java.lang.IllegalArgumentException
- if the value of millis is negative.
RTInterrupted
- if another thread has interrupted this thread.
RTDelayed
- if execution continues more than
maxTimeLag
too late.Thread.sleep(long)
public static void sleep(long millis, int nanos) throws RTInterrupted, RTDelayed
millis
- the length of time to sleep in milliseconds.nanos
- 0-999999 additional nanoseconds to sleep.
java.lang.IllegalArgumentException
- if the value of millis is negative.
RTInterrupted
- if another thread has interrupted this thread.
RTDelayed
- if execution continues more than
maxTimeLag
too late.Thread.sleep(long, int)
public static void sleepUntil(long wakeUpTime) throws RTInterrupted, RTDelayed
wakeUpTime
- the time to wake up.
RTInterrupted
- if another thread has interrupted this thread.
RTDelayed
- if execution continues more than
maxTimeLag
too late.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |