lock(typeof(MyClass))

I was in a code review this week, and we came across the mistake of locking the type of a static class for thread sychronization (probably because it was documented in MSDN to do it this way).

http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnaraskdr/html/askgui06032003.asp

posted @ Thursday, November 04, 2004 1:48 PM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«May»
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789