OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
apps.orcUi.core_runtime.StateIngressRuntime Class Reference

Decode transport messages, present them, and dispatch UI-ready state. More...

Public Member Functions

None set_vehicle_configuration (self, VehicleConfiguration configuration)
 Apply vehicle-specific interpretation settings to future snapshots.
 
None start (self)
 Start UI draining on the Tk thread, then start transport ingress.
 

Protected Member Functions

None _schedule_state (self, Callable[[], None] callback)
 Queue UI work without crossing into Tk from a dispatcher worker.
 
None _drain_ui_queue (self)
 Apply pending presentation state from the Tk/main thread.
 

Detailed Description

Decode transport messages, present them, and dispatch UI-ready state.

Member Function Documentation

◆ _schedule_state()

None apps.orcUi.core_runtime.StateIngressRuntime._schedule_state (   self,
Callable[[], None]  callback 
)
protected

Queue UI work without crossing into Tk from a dispatcher worker.

MessageDispatcher handlers run on ThreadPoolExecutor workers. Calling Tk.after from those workers can block waiting for Tk's main loop, particularly while the window is being destroyed. Keep that boundary thread-safe by making workers enqueue callbacks only. start() installs the queue drain from the UI thread before ingress begins.


The documentation for this class was generated from the following file: