Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR 1.3.6 Segmentation fault in pthread_setschedparam



Seppo Ingalsuo wrote:
> 
> ...
> bool cThread::Start(void)
> {
>   if (!running) {
>      running = true;
>      parentTid = pthread_self();
>      pthread_create(&childTid,
>        NULL, (void *(*) (void *))&StartThread, (void *)this);
>      pthread_setschedparam(childTid, SCHED_RR, 0);
>      usleep(10000);
>      // otherwise calling Active() immediately after Start()
>      // causes a "pure virtual method called" error
>      }
>   return true; //XXX return value of pthread_create()???
> }
> 
> Usleep for ten seconds to avoid error looks a bit fragile. Could this be
> the problem?

That's 10 milliseconds (10000 microseconds).

Klaus


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index