hi,

i played with timer_create routine with the following code. it seems
the timer is working, but the cpu utilization is really high(over 90%)
if i run "top". Any idea what's going on on G1?

Thanks!

-----------------------------------------------------------------------------------------------------
        se.sigev_notify = SIGEV_THREAD;
        se.sigev_notify_function = timer_handler;
        se.sigev_signo = SIGUSR1;
        timer_create(CLOCK_REALTIME, &se, &tid);

        memset(&ts, 0, sizeof(struct itimerspec));
        ts.it_value.tv_sec = 0;
        ts.it_value.tv_nsec = 30000000;
        ts.it_interval.tv_sec = 0;
        ts.it_interval.tv_nsec = 30000000;
        result = timer_settime(tid, 0, &ts, 0);

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to