<div dir="ltr">typo: "when the inputs change'', not "outputs".</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 11:01 AM, Rafael Vega <span dir="ltr"><<a href="mailto:email.rafa@gmail.com" target="_blank">email.rafa@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi.<div><br><div>I'm developing an external that starts a separate pthread to poll some hardware inputs. When the outputs change, I need to send a message like [34 56( to one of two outlets in the external from my thread. </div>


<div><br></div><div>Do I need to use my own mutex? or the sys_lock(), sys_unlock() calls around the outlet_whatever() calls? or nothing at all, just call outlet_whatever()?</div><div><br></div><div>Anyone cares to give a two line explanation of the logic around this?</div>


<div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div dir="ltr"><div>Rafael Vega<br></div><a href="mailto:email.rafa@gmail.com" target="_blank">email.rafa@gmail.com</a></div>


</div></font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Rafael Vega<br></div><a href="mailto:email.rafa@gmail.com" target="_blank">email.rafa@gmail.com</a></div>
</div>