<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>how to wait for more than one signal in one task in RTX51 TIny</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/26180/how-to-wait-for-more-than-one-signal-in-one-task-in-rtx51-tiny</link><description> 
Hi: 

 
I want to excute one task that is already waiting for serval
different signals. how can I do that in the RTX51 TINNY? 

 
for example: 
void task_0(){ 

 
os_send_signal (2); 
} 

 
void task_1(){ 

 
os_send_signal (2); 
} 

 
void task_2(</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: how to wait for more than one signal in one task in RTX51 TIny</title><link>https://community.arm.com/thread/103444?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 19:04:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1c56b92a-ff92-43d3-ac39-0805e06bcd06</guid><dc:creator>ashley madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;It does not know which task send the first signal to
...&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Hmm, this level of interrogatory makes me wonder -- somewhat
clueful, yet clueless -- hmm...&lt;/p&gt;

&lt;p&gt;
If only it had the ability to master the &amp;quot;Place source code
between ...&amp;quot; directives two bullet-points above the forum&amp;#39;s
&amp;quot;Message:&amp;quot; text entry box, but no, so how to classify it ...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wait for more than one signal in one task in RTX51 TIny</title><link>https://community.arm.com/thread/77775?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 17:52:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9bf931c9-94e1-4af9-8d40-3ccbb4343647</guid><dc:creator>hero0765 maxwell</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;&lt;/p&gt;

&lt;p&gt;
void task_2()&lt;br /&gt;
{ os_wait(K_SIG,0,0); // wait for the first signal
os_wait(K_SIG,0,0); // wait for the second signal&lt;/p&gt;

&lt;p&gt;
++count;&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
&amp;quot; It does not know which task send the first signal to task_2. It
means that if the task_0 has been send signal for two times before
the task_1 send the signal, the task_2 also excute. But I want task_2
to wait for two signals that are from task_0 and task_1.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to wait for more than one signal in one task in RTX51 TIny</title><link>https://community.arm.com/thread/56898?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2009 22:47:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1fa02f72-c639-42ac-9f64-51c17ca6a77c</guid><dc:creator>Stefan Hartwig</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
may it be an idea, to just execute 2 os_wait calls?&lt;/p&gt;

&lt;pre&gt;
void task_2()
{
    os_wait(K_SIG,0,0); // wait for the first signal
    os_wait(K_SIG,0,0); // wait for the second signal

    ++count;
}
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>