<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16470"></HEAD>
<BODY 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; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
</DIV>
<DIV><SPAN>zxz3121@gmail.com</SPAN></DIV></BODY></HTML>