Problem using rt_sem_wait
Hannes Mayer
h.mayer at inode.at
Mon Jan 23 15:19:53 CET 2006
Jorge Almeida wrote:
> Yes.
> I'm using C++ and i call rt_task_init in the class constructor.
>
>
> Debug::Debug(): QThread(),
> m_psTask(NULL)
> {
>
> //initializes the task for this thread
> if(m_psTask == NULL){
> m_psTask = rt_task_init(rt_get_name(0),0,0,0);
> }
> }
Dunno if that is related to your problem, but I always use
nam2num() to provide the task name e.g. nam2num("MAIN").
From the docs: rt_get_name: Get an object name by its address
Do you check m_psTask after rt_task_init ?
I bet it's NULL.
Best regards,
Hannes.
More information about the Rtai
mailing list