You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated comment to indicate functions are not ISR safe since they use a mutex under the hood
* added another needed comment
* Adding warning on priorityqueue usage within an ISR
Copy file name to clipboardExpand all lines: Os/Generic/docs/sdd.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ Os::PriorityQueue is an in-memory implementation of Os::Queue. It allows project
12
12
13
13
For memory protection, Os::PriorityQueue delegates to Os::Mutex and Os::ConditionVariable.
14
14
15
+
> [!WARNING]
16
+
> This Queue implementation is insufficient to be used for sending messages in ISR context due to the use of Os::Mutex as mentioned in above.
17
+
15
18
### Os::PriorityQueue Key Algorithms
16
19
17
20
Os::PriorityQueue stores messages in a set of dynamically allocated unordered parallel arrays. These arrays store: message data, and message data size respectively. There is also an index-free list that stores the indices that are available for storage in the fixed size arrays.
0 commit comments