Skip to contentSkip to conversation

periodical task in posix skin

Xenomai-help Ramon 1 participant 1 message Aug 24, 2010

lore
Share & tools
lore

Ramon

author
#0 lore raw

Hi,

I'm sorry in my previous email I made an error.

If I use

clock_gettime ( TIMER_ABSTIME, &now);
now.tv_nsec=now.tv_nsec+PERIOD; out=pthread_make_periodic_np (pthread_self(), &now,&period);
......

it always says that "the start time has already passed\n". Differently if I use

clock_gettime      ( CLOCK_REALTIME, &now);
       now.tv_nsec=now.tv_nsec+PERIOD;
       out=pthread_make_periodic_np (pthread_self(), &now,&period);

everything works fine.

Ramon