Книга: Real-Time Concepts for Embedded Systems

7.6.3 Obtaining Message Queue Information

7.6.3 Obtaining Message Queue Information

Obtaining message queue information can be done from an application by using the operations listed in Table 7.3.

Table 7.3: Obtaining message queue information operations.

Operation Description
Show queue info Gets information on a message queue
Show queue’s task-waiting list Gets a list of tasks in the queue’s task-waiting list

Different kernels allow developers to obtain different types of information about a message queue, including the message queue ID, the queuing order used for blocked tasks (FIFO or priority-based), and the number of messages queued. Some calls might even allow developers to get a full list of messages that have been queued up.

As with other calls that get information about a particular kernel object, be careful when using these calls. The information is dynamic and might have changed by the time it’s viewed. These types of calls should only be used for debugging purposes.

Оглавление книги


Генерация: 3.495. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз