[ENet-discuss] dangerous about function enet_host_flush
Ruud van Gaal
ruud at racer.nl
Fri May 3 03:43:18 PDT 2013
ENet isn't thread-safe, as you found out.
On Fri, May 3, 2013 at 11:49 AM, zxz3121 at gmail.com <zxz3121 at gmail.com>wrote:
> **
>
> 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!
> ------------------------------
> zxz3121 at gmail.com
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130503/6e09c2f1/attachment.html>
More information about the ENet-discuss
mailing list