mirror of https://github.com/ARMmbed/mbed-os.git
equeue: Added note about using global event queues in irq
parent
4145cc0cf0
commit
6e4e62b8a0
|
@ -45,6 +45,11 @@ namespace mbed {
|
||||||
* for the event loop to work without an RTOS, or an RTOS system can can save
|
* for the event loop to work without an RTOS, or an RTOS system can can save
|
||||||
* memory by reusing the main stack.
|
* memory by reusing the main stack.
|
||||||
*
|
*
|
||||||
|
* @note
|
||||||
|
* mbed_event_queue is not itself IRQ safe. To use the mbed_event_queue in
|
||||||
|
* interrupt context, you must first call `mbed_event_queue()` in threaded
|
||||||
|
* context and store the pointer for later use.
|
||||||
|
*
|
||||||
* @return pointer to event queue
|
* @return pointer to event queue
|
||||||
*/
|
*/
|
||||||
events::EventQueue *mbed_event_queue();
|
events::EventQueue *mbed_event_queue();
|
||||||
|
@ -67,6 +72,12 @@ events::EventQueue *mbed_event_queue();
|
||||||
* or less, but could occasionally be significantly higher if many events are
|
* or less, but could occasionally be significantly higher if many events are
|
||||||
* queued.
|
* queued.
|
||||||
*
|
*
|
||||||
|
* @note
|
||||||
|
* mbed_highprio_event_queue is not itself IRQ safe. To use the
|
||||||
|
* mbed_highprio_event_queue in interrupt context, you must first call
|
||||||
|
* `mbed_event_queue()` in threaded context and store the pointer for
|
||||||
|
* later use.
|
||||||
|
*
|
||||||
* @return pointer to high-priority event queue
|
* @return pointer to high-priority event queue
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue