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.