<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Is it possible to remove a work item from a work queue once it is queued?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65142/is-it-possible-to-remove-a-work-item-from-a-work-queue-once-it-is-queued</link><description>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.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Aug 2020 09:34:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65142/is-it-possible-to-remove-a-work-item-from-a-work-queue-once-it-is-queued" /><item><title>RE: Is it possible to remove a work item from a work queue once it is queued?</title><link>https://devzone.nordicsemi.com/thread/266162?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 09:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a544e512-8136-4eac-9e93-fe126fbd1382</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;My pleasure!&lt;/p&gt;
&lt;p&gt;And that is correct. It is implemented that way to avoid disruption of the general OS operation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to remove a work item from a work queue once it is queued?</title><link>https://devzone.nordicsemi.com/thread/266158?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 09:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8cd8b9-911a-4103-b10a-a47093180989</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/crfosse"&gt;Carl Richard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to remove a work item from a work queue once it is queued?</title><link>https://devzone.nordicsemi.com/thread/266010?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 13:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ab94da4-db55-49c5-81eb-a7d5697d425c</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;You can cancel individual delayed work items using&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.13.0/api/kernel_api.html#_CPPv321k_delayed_work_cancelP14k_delayed_work"&gt;k_delayed_work_cancel&lt;/a&gt;. In addition individual items can be removed from queues using&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.13.0/api/kernel_api.html#_CPPv314k_queue_removeP7k_queuePv"&gt;k_queue_remove&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Notify me if you need help with anything else.&lt;br /&gt;&lt;br /&gt;Best regards,&amp;nbsp;&lt;br /&gt;Carl Richard&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>