<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to create a blocked task using processor expert in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-a-blocked-task-using-processor-expert/m-p/500898#M16133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, a quick question.. how can I create a blocked task using processor expert? if it cannot be done, how can I modify the task created by processor expert to a&amp;nbsp; blocked task? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 10:12:32 GMT</pubDate>
    <dc:creator>hunglam</dc:creator>
    <dc:date>2015-12-22T10:12:32Z</dc:date>
    <item>
      <title>how to create a blocked task using processor expert</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-a-blocked-task-using-processor-expert/m-p/500898#M16133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, a quick question.. how can I create a blocked task using processor expert? if it cannot be done, how can I modify the task created by processor expert to a&amp;nbsp; blocked task? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-a-blocked-task-using-processor-expert/m-p/500898#M16133</guid>
      <dc:creator>hunglam</dc:creator>
      <dc:date>2015-12-22T10:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a blocked task using processor expert</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-a-blocked-task-using-processor-expert/m-p/500899#M16134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lam:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use the API&amp;nbsp; _task_block() to block the active task. The API removes the active task from the task's ready queue and sets the BLOCKED bit in the STATE field of the task descriptor. Please see the following task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void world_task&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t initial_data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _task_id hello_task_id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; hello_task_id = _task_create(0, HELLO_TASK, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (hello_task_id == MQX_NULL_TASK_ID) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf ("\n Could not create hello_task\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(" World 3000 \n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; _task_block();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Dec 2015 07:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-create-a-blocked-task-using-processor-expert/m-p/500899#M16134</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-12-25T07:16:14Z</dc:date>
    </item>
  </channel>
</rss>

