Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Blocking on multiple objects

Posted by lantczak on December 23, 2017

I would like to use several communication mechanism (notification + queues + stream buffer) by one task. But I cannot beacause I don't see a mechnism that I can block particular task on several objects (e.g. notification + queue). I know that there is queue set API but it supports only queues +semaphores what about notifications, events or stream buffer. Each of my tasks in the system has own queue and I cannot use any other nice communication mechanism becasue I'm not able to block on both. Do I miss something?

Best Regards Lukasz Antczak


Blocking on multiple objects

Posted by rtel on December 23, 2017

No, you don't miss anything, but you could use a queue to tell the waiting task what to check for. For example, if you send a notification to a task, but the task is waiting on the 'master' queue, then also send a message to the queue telling the receiving task to check its notification.

However, it sounds like you may be able to simplify your design and perhaps use the queue for most things. Read through the 'alternatives to using queue sets' section on the queue set page: https://www.freertos.org/Pend-on-multiple-rtos-objects.html


Blocking on multiple objects

Posted by lantczak on December 24, 2017

Thanks for answer and hints


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Careers

FreeRTOS and other careers at AWS.


Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner