Hi
I have som problems creating a periodic posix thread. When I call
pthread_make_periodic_np it returns 3 (ESRCH). I have created the
following test:
void *thread()
{
while(1)
{
pthread_wait_np(NULL);
printf("Test\n");
}
}
int main()
{
pthread_t t;
pthread_create(&t, NULL, thread, NULL);
struct timespec start, period;
clock_gettime(CLOCK_REALTIME, &start);
period.tv_sec = 10;
period.tv_nsec = 0;
int error = pthread_make_periodic_np(t, &start, &period);
printf("%i\n",error);
if ( error == 0 )
pthread_join(t, NULL);
}
Why does it fail?
Kim Mathiassen
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help