<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Anyone know why SocketWin32.m3 has had a giant lock around everything?<BR>
I see no point to it.<BR>
The only global variable is related to on-demand initialization.<BR>
And even that wasn't handled correctly..<BR>
<BR>
- Jay<BR><BR> <BR>> Date: Sun, 18 Apr 2010 16:08:20 +0000<BR>> To: m3commit@elegosoft.com<BR>> From: jkrell@elego.de<BR>> Subject: [M3commit] CVS Update: cm3<BR>> <BR>> CVSROOT: /usr/cvs<BR>> Changes by: jkrell@birch. 10/04/18 16:08:20<BR>> <BR>> Modified files:<BR>> cm3/m3-libs/libm3/src/os/WIN32/: SocketWin32.m3 <BR>> <BR>> Log message:<BR>> fix race condition and eliminate giant lock<BR>> I'm guessing the original authors didn't realize WSAGetLastError returns a thread local. ?<BR>> <BR> </body>
</html>