<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: Optimization by adding a pth_sem_dec in EMI layers run metho</title><link>https://sourceforge.net/p/bcusdk/bugs/2/</link><description>Recent changes to 2: Optimization by adding a pth_sem_dec in EMI layers run metho</description><atom:link href="https://sourceforge.net/p/bcusdk/bugs/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 02 Jan 2013 22:52:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bcusdk/bugs/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>Optimization by adding a pth_sem_dec in EMI layers run metho</title><link>https://sourceforge.net/p/bcusdk/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking at the EMI layers and I came across the following optimization/bugfix:&lt;br /&gt;
e.g. look at in EMI2Layer2Interface::Run&lt;br /&gt;
If a packet is send ( Send(inqueue.get()); ) , the semaphore indicating available packets (in_signal) is not reduced.&lt;br /&gt;
(This leads to an unnecessary cycling in the run method because iface-&amp;gt;Get_Packet does not block anymore.)&lt;br /&gt;
I suggest to add &lt;br /&gt;
pth_sem_dec (&amp;amp;in_signal);&lt;br /&gt;
before the Send operation&lt;br /&gt;
(see attached patch)&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;
Meik&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Meik Felser</dc:creator><pubDate>Wed, 02 Jan 2013 22:52:08 -0000</pubDate><guid>https://sourceforge.net8ff890b784c32e3eb68fb14c5f728aca48b69574</guid></item></channel></rss>