<div dir="ltr">ENet isn't thread-safe, as you found out.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 11:49 AM, <a href="mailto:zxz3121@gmail.com">zxz3121@gmail.com</a> <span dir="ltr"><<a href="mailto:zxz3121@gmail.com" target="_blank">zxz3121@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div style="MARGIN:10px">
<div> </div>
<div>when I use two different threads for receive package and send 
package  I found that when I use enet_host_flush in send thread may occur 
Thread synchronization  problem  randomly, because 
enet_host_flush  and enet_host_service may  call the  
enet_protocol_send_outgoing_commands  function  at the sametime,even I 
use the pthread_mutex_t  in my threads it`s crash randomly anyway!
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1"><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<div><span><a href="mailto:zxz3121@gmail.com" target="_blank">zxz3121@gmail.com</a></span></div></font></span></div>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br></div>