<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>Best if a thread is created specifically for enet including creating, receiving, sending.. and the only synchronization points could be function send and retrieve.</span></div><div><span>send (Packet*) and Packet* retrieve() both are using lockless queue.. I am going to multithread enet that way, hope it is the proper way.<br></span></div><div><br></div> <div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Arnaud Blanchard <arnaud.blanchard@ensea.fr><br> <b><span style="font-weight: bold;">To:</span></b> Discussion of the ENet library <enet-discuss@cubik.org> <br> <b><span style="font-weight:
bold;">Sent:</span></b> Wednesday, May 16, 2012 10:33 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [ENet-discuss] ENet re-entrant?<br> </font> </div> <br>
<div id="yiv149686258">
<div>
Hi,<br>
<br>
I had the same problem. I stop to use enet_peer_send in a parallel
thread with enet_host_service. Valgrind was complaining as well due
to double free in function called by enet_host_service.<br>
<br>
Arnaud B.<br>
<br>
On 05/16/2012 04:28 PM, Ruud van Gaal wrote:
<blockquote type="cite">Hi,<br>
<br>
I'm getting crashes in my multithread app somewhere in ENet. It is
somewhere in enet_host_service ultimately.<br>
Any ideas whether enet_host_service is re-entrant (called at the
same time in 2 threads)?<br>
<br>
Thanks,<br>
Ruud<br>
<br>
<pre><fieldset class="yiv149686258mimeAttachmentHeader"></fieldset>
_______________________________________________
ENet-discuss mailing list
<a rel="nofollow" class="yiv149686258moz-txt-link-abbreviated" ymailto="mailto:ENet-discuss@cubik.org" target="_blank" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a>
<a rel="nofollow" class="yiv149686258moz-txt-link-freetext" target="_blank" href="http://lists.cubik.org/mailman/listinfo/enet-discuss">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
</blockquote>
<br>
<br>
<pre class="yiv149686258moz-signature">--
--
Research engineer
Neurocybernetic team - ETIS
Université de Cergy-Pointoise
2 avenue Adolphe Chauvin
95302 Pontoise CEDEX
FRANCE
Tél: +33 (0) 1 34 25 66 22</pre>
</div>
</div><br>_______________________________________________<br>ENet-discuss mailing list<br><a ymailto="mailto:ENet-discuss@cubik.org" 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><br> </div> </div> </div></body></html>