<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">ENET is not multi thread safe. You will need an instance of the host struct per thread. Or come up with your own synchronization methods between threads.<div><br><div><div>On May 16, 2012, at 10:28 AM, Ruud van Gaal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">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>
_______________________________________________<br>ENet-discuss mailing list<br><a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>http://lists.cubik.org/mailman/listinfo/enet-discuss<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><br class="Apple-interchange-newline">---<br class="Apple-interchange-newline"><table width="100%" cellpadding="0" cellspacing="0" style="background-color: rgb(255, 255, 255); font-family: Helvetica, sans-serif; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><tbody><tr><td><table cellpadding="0" cellspacing="0" style="clear: both; "><tbody><tr><td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(170, 170, 170); padding-top: 20px; padding-right: 15px; padding-bottom: 20px; padding-left: 15px; "><div class="haiku" style="width: 260px; background-color: rgb(183, 203, 218); padding-top: 5px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; "><div style="font: normal normal normal 16px/normal Helvetica, sans-serif; line-height: 30px; color: rgb(9, 56, 93); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><b>Bug in my software<br>Disappears when in testing<br>Curse you, Heisenberg</b></div></div></td></tr></tbody></table></td></tr></tbody></table><div><br></div></div><div><br></div><div><a href="mailto:grant_mills@affirmednetworks.com">grant_mills@affirmednetworks.com</a></div><div><br></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>