<?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: How can i change the thread name which is dynamically created ? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350102#M11279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that you want change MQX tasks name (task=thread). Correct?&lt;/P&gt;&lt;P&gt;Could you please closer specify how did you change task name by template pointer?&lt;/P&gt;&lt;P&gt;Did you create new template list in RAM (copy of old one), edit names in this table and change pointer in MQX_init_struct to this new template list? Or you renamed tasks different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of MQX you use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 15:31:15 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-02-05T15:31:15Z</dc:date>
    <item>
      <title>How can i change the thread name which is dynamically created ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350101#M11278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If change the name of one thread, it will change the name of the all threads dynamically created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : There are two threads T1 and T2. T1 is first creted, then T2 with same priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If i change the name of T1 using template pointer, T2 name also get change to common name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know with some solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 03:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350101#M11278</guid>
      <dc:creator>chethanpandi</dc:creator>
      <dc:date>2015-02-05T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can i change the thread name which is dynamically created ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350102#M11279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that you want change MQX tasks name (task=thread). Correct?&lt;/P&gt;&lt;P&gt;Could you please closer specify how did you change task name by template pointer?&lt;/P&gt;&lt;P&gt;Did you create new template list in RAM (copy of old one), edit names in this table and change pointer in MQX_init_struct to this new template list? Or you renamed tasks different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of MQX you use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350102#M11279</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-02-05T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can i change the thread name which is dynamically created ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350103#M11280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i able to renaming the thread dynamically. But if i created threads dynamically by defining task template in local scope, with task index 0 and parameter as pointer to task template, if first thread renamed it renames all threads with common name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I rename the thread created from task template, with application-unique numbers, only that specified thread name only changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed below pseudo code to rename the thread,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TASK_TEMPLATE_STRUCT_PTR template_ptr;&lt;/P&gt;&lt;P&gt;template_ptr = _task_get_template_ptr(tid);&lt;/P&gt;&lt;P&gt;strcpy(template_ptr-&amp;gt;TASK_NAME, "new_name");&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 10:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-can-i-change-the-thread-name-which-is-dynamically-created/m-p/350103#M11280</guid>
      <dc:creator>chethanpandi</dc:creator>
      <dc:date>2015-02-06T10:47:49Z</dc:date>
    </item>
  </channel>
</rss>

