Now I can handle signals but there is a little problem with pgSetIdle() 
function. This functions were executing some of my code in specified time 
interval before handling signals. There were no problem with pgSetIdle().But 
now I set a function to be called in specified time interval by using 
pgSetIdle. the function is never called.  I use SIGALRM signal and do some 
jobs.
I am sending some of my code :

       signal(SIGALRM,(void *)signal_jobs);
        timer1.it_interval.tv_sec=0;
        timer1.it_interval.tv_usec=10000;

        timer1.it_value.tv_sec=0;
        timer1.it_value.tv_usec=10000;
        t = setitimer(ITIMER_REAL,&timer1,&timer2);
        if(t<0)
                ....

        pgSetIdle(100 ,&UpdateIzleme);

This program generates interrupts in every 10 miliseconds (no GUI functions 
are called in signal_jobs() ). and some jobs done for this interrupts. but I 
also want my UpdateIzleme function to be called in 100 miliseconds. But it 
never calls up UpdateIzleme function. The strangest thing is when we click 
the canvas our main window it executes UpdateIzleme().any help will be 
useful.

thanks for your interest


        


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to