Package com.codename1.realtime
package com.codename1.realtime
Real-time threads: periodic work released on time, at a fixed operating-system priority, that the garbage collector does not stop.
A RealtimeTask runs on its own RealtimeThread. Its setup() runs once and may
allocate; after it, every period wakes the thread and runs cycle(), which must
not allocate. That rule is what lets the thread run beside a collector: it is
checked when the application is built, and again while it runs. See Realtime for
the entry point, what each platform provides and what the guarantees are.
-
ClassDescriptionMarks a method that a
RealtimeTask'scycle()may call although it allocates.Entry point to real-time threads: periodic tasks that run at a fixed operating-system priority, are released on an absolute clock, and are not paused by the garbage collector.Thrown out of aRealtimeTask'scycle()when the cycle allocates beyond its budget (RealtimeParameters.setAllocationBudget(int), zero unless set).How aRealtimeThreadis scheduled: its period, its operating-system priority, the CPU it runs on and how much it may allocate per period.A snapshot of how aRealtimeThread's periods went: how late each release woke the thread (latency), how long its cycles ran, and how many releases it missed.The work aRealtimeThreadruns every period.A thread that runs aRealtimeTaskonce per period.