[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Tcl/tK [was: RE: [rtl] hard realtime data display?]



"Prescott, Richard" wrote:
> 
> >Try to relax the X server load by, e.g., redrawing only during idle
> >periods (I knew how to do it in Tcl/Tk, but don't ask me for GTK).
> 
> How ?
> 

For gtk :

-------------------------------------------------
int idle_func_id ;

gint idle_function(gpointer data) ;
/* must return TRUE to continue ( FALSE disable idle function ) */

idle_func_id = gtk_idle_add(idle_function,data) ;

/* and */

gtk_idle_remove(idle_func_id) ;

-------------------------------------------------

I use that to display real-time video acquisition.
(precise time but large period -> enough time to display between 2
acquisitions)

-- KUMSTA Christophe
-- <kumsta@easynet.fr>
-- real-time system developper
-- RT-Linux (Use the source luke)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/