diff --git a/miosix/kernel/queue.h b/miosix/kernel/queue.h index 9b62d5926d8115b024a38e1e532b0f1cce83044a..a870da2d484d60988f2aff9e6c523bb643a55c45 100644 --- a/miosix/kernel/queue.h +++ b/miosix/kernel/queue.h @@ -192,12 +192,10 @@ template <typename T, unsigned int len> void Queue<T,len>::waitUntilNotEmpty() { FastInterruptDisableLock dLock; - IRQwakeWaitingThread(); while(isEmpty()) { waiting=Thread::IRQgetCurrentThread(); Thread::IRQenableIrqAndWait(dLock); - IRQwakeWaitingThread(); } } @@ -205,12 +203,10 @@ template <typename T, unsigned int len> void Queue<T,len>::waitUntilNotFull() { FastInterruptDisableLock dLock; - IRQwakeWaitingThread(); while(isFull()) { waiting=Thread::IRQgetCurrentThread(); Thread::IRQenableIrqAndWait(dLock); - IRQwakeWaitingThread(); } }