1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/msg: Document caution needed when having queue on the stack

This commit is contained in:
chrysn 2022-01-11 17:18:38 +01:00
parent 87847b1de4
commit b4a185132a

View File

@ -375,6 +375,9 @@ unsigned msg_avail(void);
* not be NULL.
* @param[in] num Number of ``msg_t`` structures in array.
* **MUST BE POWER OF TWO!**
*
* If array resides on the stack, the containing stack frame must never be
* left, not even if it is the current thread's entry function.
*/
void msg_init_queue(msg_t *array, int num);