Problem with T_SUSP
Philippe Gerum
rpm at xenomai.org
Mon Sep 12 12:02:10 CEST 2005
Philippe Gerum wrote:
> Pramode C E wrote:
>
>> Hello,
>>
>> The Fusion API doc says that invoking rt_task_create with a `mode'
>> argument set to T_SUSP will result in the real-time task starting in a
>> suspended state - but in a small program I have written, the task
>> starts running immediately after rt_task_start is called ... have I
>> misinterpreted something?
>>
>
> No, should be that way. Could you try the following:
>
> - Only call rt_task_create() in your app, but not rt_task_start()
> - Then send back the output of "cat /proc/rtai/sched"
>
> The 'S' flag should appear in the STAT field for the task.
Oops. Forgot to propagate the T_SUSP bit for threads created from the
user-space interface. Will fix, thanks for the report.
--
Philippe.
More information about the Rtai
mailing list