Dear All,
I wonder if there is a way to empty a work-queue that has work items pending. Is there a way to empty the whole queue or is there a way to remove individual tasks?
I am at the moment using NRF SDK v1.1.0, so Zephyr 2.0.99.
Dear All,
I wonder if there is a way to empty a work-queue that has work items pending. Is there a way to empty the whole queue or is there a way to remove individual tasks?
I am at the moment using NRF SDK v1.1.0, so Zephyr 2.0.99.
Hello!
You can cancel individual delayed work items using k_delayed_work_cancel. In addition individual items can be removed from queues using k_queue_remove.
Notify me if you need help with anything else.
Best regards,
Carl Richard
Carl Richard
Thank you very much for the speedy answer. From your answer I get that I can remove each item individually, but I cannot simply remove all pending jobs in one go. Is this right?
Carl Richard
Thank you very much for the speedy answer. From your answer I get that I can remove each item individually, but I cannot simply remove all pending jobs in one go. Is this right?
My pleasure!
And that is correct. It is implemented that way to avoid disruption of the general OS operation.
Best regards,
Carl Richard