You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Swapna Iyer <sw...@lightmatter.co.INVALID> on 2021/12/07 19:37:40 UTC

Control Task #2 from Task #1

Hi,

How can I enable a Nuttx task (task #1) to control another Nuttx task (task #2)? In FreeRTOS, I was able to use task_suspend(task_handle of task #2) and task_resume(task_handle of task #2) from task #1 to control task #2.

How can I best do this in Nuttx?

Best,

Swapna Iyer
swapna@lightmatter.co




Fwd: Control Task #2 from Task #1

Posted by Swapna Iyer <sw...@lightmatter.co.INVALID>.
Thank you, Tim! 
I also found an example here: 
https://github.com/apache/incubator-nuttx-apps/blob/0f68fb7075f2ca465648008e4df249d94a2960f3/testing/ostest/suspend.c <https://github.com/apache/incubator-nuttx-apps/blob/0f68fb7075f2ca465648008e4df249d94a2960f3/testing/ostest/suspend.c>

Swapna Iyer
swapna@lightmatter.co



> Begin forwarded message:
> 
> From: "Tim" <Ti...@JTi.uk.com.INVALID>
> Subject: RE: Control Task #2 from Task #1
> Date: December 10, 2021 at 3:09:09 AM PST
> To: <de...@nuttx.apache.org>
> Reply-To: dev@nuttx.apache.org
> 
> My POSIX knowledge is still somewhat limited, but I believe it's this:
> 
> https://nuttx.apache.org/docs/latest/reference/user/07_signals.html
> 
>> -----Original Message-----
>> From: Swapna Iyer <sw...@lightmatter.co.INVALID>
>> Sent: 09 December 2021 17:25
>> 
>> Is there any example I can look at?
>> 
>> Swapna Iyer
>> swapna@lightmatter.co
>> 
>> 
>> 
>>> On Dec 7, 2021, at 11:37 AM, Swapna Iyer <sw...@lightmatter.co> wrote:
>>> 
>>> Hi,
>>> 
>>> How can I enable a Nuttx task (task #1) to control another Nuttx task
> (task #2)?
>> In FreeRTOS, I was able to use task_suspend(task_handle of task #2) and
>> task_resume(task_handle of task #2) from task #1 to control task #2.
>>> 
>>> How can I best do this in Nuttx?
>>> 
>>> Best,
>>> 
>>> Swapna Iyer
>>> swapna@lightmatter.co
>>> 
>>> 
>>> 
> 
> 


RE: Control Task #2 from Task #1

Posted by Tim <Ti...@JTi.uk.com.INVALID>.
My POSIX knowledge is still somewhat limited, but I believe it's this:

https://nuttx.apache.org/docs/latest/reference/user/07_signals.html

>-----Original Message-----
>From: Swapna Iyer <sw...@lightmatter.co.INVALID>
>Sent: 09 December 2021 17:25
>
>Is there any example I can look at?
>
>Swapna Iyer
>swapna@lightmatter.co
>
>
>
>> On Dec 7, 2021, at 11:37 AM, Swapna Iyer <sw...@lightmatter.co> wrote:
>>
>> Hi,
>>
>> How can I enable a Nuttx task (task #1) to control another Nuttx task
(task #2)?
>In FreeRTOS, I was able to use task_suspend(task_handle of task #2) and
>task_resume(task_handle of task #2) from task #1 to control task #2.
>>
>> How can I best do this in Nuttx?
>>
>> Best,
>>
>> Swapna Iyer
>> swapna@lightmatter.co
>>
>>
>>



Re: Control Task #2 from Task #1

Posted by Swapna Iyer <sw...@lightmatter.co.INVALID>.
Is there any example I can look at?

Swapna Iyer
swapna@lightmatter.co



> On Dec 7, 2021, at 11:37 AM, Swapna Iyer <sw...@lightmatter.co> wrote:
> 
> Hi,
> 
> How can I enable a Nuttx task (task #1) to control another Nuttx task (task #2)? In FreeRTOS, I was able to use task_suspend(task_handle of task #2) and task_resume(task_handle of task #2) from task #1 to control task #2.
> 
> How can I best do this in Nuttx?
> 
> Best,
> 
> Swapna Iyer
> swapna@lightmatter.co
> 
> 
>