anonymous wrote on Wednesday, February 27, 2013:
In which order are returned queues or semaphores if e.g. both binary semaphores were given?
I mean a use case on ARM CM3. During ISR0 a binary semaphore A is given . Meanwhile a different interrupt with the same priority occurs, it is pended waiting for the end of the ISR0. The ISR1 gives a semaphore B.
Both semaphores (A and B) belongs to a queue set C and were added in this order xQueueAddToSet(A), xQueueAddToSet(B).
If I call xQueueSelectFromSet(C) before ISR0, will be the semaphore A returned? And if I call xQueueSelectFromSet(C) again, will be the semaphore B returned immediately?
Thank you for explanation.
Martin Velek