First page Back Continue Last page Overview Graphics
KineTcl - Tricks
Callbacks
- Called by OpenNI threads → Can't call Tcl directly.
- Solution: Convert Callbacks to Events, use Tcl_ThreadQueueEvent(), Tcl_ThreadQueueAlert()
- Problem: A high-rate 'new frame' signal (@ 30 fps)
- Solution: Event-coalescing (like for Mouse Motion).
- Events delivered while Tcl processes events. Queue is never empty, processing never ends.
- Solution: Defer delivery, save in spill-queue.
- Exposed to Tcl level: Hack.
- Future: Research Tcl “Event Sources” as means of hiding