[M3devel] giant lock in SocketWin32.m3?

Jay K jay.krell at cornell.edu
Sun Apr 18 16:10:50 CEST 2010


Anyone know why SocketWin32.m3 has had a giant lock around everything?

I see no point to it.

The only global variable is related to on-demand initialization.

  And even that wasn't handled correctly..

 

 - Jay

 
> Date: Sun, 18 Apr 2010 16:08:20 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
> 
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 10/04/18 16:08:20
> 
> Modified files:
> cm3/m3-libs/libm3/src/os/WIN32/: SocketWin32.m3 
> 
> Log message:
> fix race condition and eliminate giant lock
> I'm guessing the original authors didn't realize WSAGetLastError returns a thread local. ?
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100418/94472502/attachment-0001.html>


More information about the M3devel mailing list