datastructure for LIFO #5968
-
Hi, to whom it may concern: I don't understand why LIFO and FIFO are all initialized with a queue please? Line 1937 in 2251ea0
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@Vudentz can you please look into this, AFAIK you made changes in this area. |
Beta Was this translation helpful? Give feedback.
-
Well they both are using a queue as storage for the items, in fact both k_fifo and k_lifo could be replaced by k_queue, but initially lifo and fifo did not share a common storage so there was a lot of code duplication. |
Beta Was this translation helpful? Give feedback.
Well they both are using a queue as storage for the items, in fact both k_fifo and k_lifo could be replaced by k_queue, but initially lifo and fifo did not share a common storage so there was a lot of code duplication.