Best if a thread is created specifically for enet including creating, 
receiving, sending.. and the only synchronization points could be function send 
and retrieve.
send (Packet*) and Packet* retrieve() both are using lockless queue.. I am 
going to multithread enet that way, hope it is the proper way.



________________________________
 From: Arnaud Blanchard <[email protected]>
To: Discussion of the ENet library <[email protected]> 
Sent: Wednesday, May 16, 2012 10:33 PM
Subject: Re: [ENet-discuss] ENet re-entrant?
 

Hi,

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.

Arnaud B.

On 05/16/2012 04:28 PM, Ruud van Gaal wrote: 
Hi,
>
>I'm getting crashes in my multithread app somewhere in ENet. It is
      somewhere in enet_host_service ultimately.
>Any ideas whether enet_host_service is re-entrant (called at the
      same time in 2 threads)?
>
>Thanks,
>Ruud
>
>
>
_______________________________________________
ENet-discuss mailing list [email protected] 
http://lists.cubik.org/mailman/listinfo/enet-discuss 


-- 
--
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
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss
_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to