<?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 Re: MRX Prevent scheduler from running in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482770#M15841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, if you call &lt;STRONG&gt;explicitly&lt;/STRONG&gt; the scheduler from the task then it will cause a context switch. In this specific case the only way you can prevent it is raising priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 18:12:20 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2016-03-09T18:12:20Z</dc:date>
    <item>
      <title>MRX Prevent scheduler from running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482767#M15838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a region of code I want to prevent MQX from context switching. I can't disable interrupts, and I need to be able to insert messages in to queues that have waiting task with higher priority. &lt;/P&gt;&lt;P&gt;Is the only option to raise the priority of the current task while it performs a few message en-queues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_task_stop_preemption does not work because it is only effective of preventing the scheduling when the slice time of the task has expired. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482767#M15838</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2016-02-23T18:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: MRX Prevent scheduler from running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482768#M15839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in MQX Reference Manual you can see this about _task_stop_preemption... "This includes the context switch at the end of a time-slice".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On one side, this sentence does not mean that it is effective until time-slice expires... It is just making explicit that even once time slice expires context switch will not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, if you use FIFO scheduling you don't need to care about time-slice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that setting a time-slice parameter in task template struct will cause the scheduling to behave as Round-Robin, however leaving this parameter blank or setting it to 0 will cause scheduler to behave as FIFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any question please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 17:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482768#M15839</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-02-29T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: MRX Prevent scheduler from running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482769#M15840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;I understand &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;_task_stop_preemption, and it does not prevent a context switch if the scheduler is called via a MQX function. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So my question still stands, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is the only option to raise the priority of the current task while it performs a few message en-queues?"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:37:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482769#M15840</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2016-03-01T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: MRX Prevent scheduler from running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482770#M15841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, if you call &lt;STRONG&gt;explicitly&lt;/STRONG&gt; the scheduler from the task then it will cause a context switch. In this specific case the only way you can prevent it is raising priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MRX-Prevent-scheduler-from-running/m-p/482770#M15841</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-03-09T18:12:20Z</dc:date>
    </item>
  </channel>
</rss>

