From d8d755c83c5524836aa36f5aa26caf65eaed00b3 Mon Sep 17 00:00:00 2001 From: Terraneo Federico <fede.tft@miosix.org> Date: Sun, 30 Apr 2023 17:18:58 +0200 Subject: [PATCH] Remove unneeded calls in Queue --- miosix/kernel/queue.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/miosix/kernel/queue.h b/miosix/kernel/queue.h index 9b62d592..a870da2d 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(); } } -- GitLab