/* Dequeues and wakes up all threads from the queue.  */
void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg)
/* Dequeues and wakes up all threads from the queue.  */
void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg)
{
    osalDbgCheck(tqp != NULL);
    while (!ThreadsQueueIsEmpty(tqp))
    {
        osalThreadDequeueNextI(tqp, msg);
    }
}