cinvoke-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cinvoke-svn] r148 - trunk/skorpion


From: will
Subject: [cinvoke-svn] r148 - trunk/skorpion
Date: 24 Mar 2007 16:52:03 -0400

Author: vmy
Date: 2007-03-24 16:52:03 -0400 (Sat, 24 Mar 2007)
New Revision: 148

Modified:
   trunk/skorpion/Chat.cs
Log:
fix race other half of race condition from previously addressed bug

Modified: trunk/skorpion/Chat.cs
===================================================================
--- trunk/skorpion/Chat.cs      2007-03-24 06:04:59 UTC (rev 147)
+++ trunk/skorpion/Chat.cs      2007-03-24 20:52:03 UTC (rev 148)
@@ -122,9 +122,9 @@
                                _font.DrawText(null, _entryLine.ToString(), new 
System.Drawing.Point(2, line), red);
                                line -= this.LineHeight;
                        }
-                       if (_debug)
-                               _lock.WaitOne();
 
+                       _lock.WaitOne();
+
                        // draw stored entries
                        foreach(string entry in _entries)
                        {
@@ -135,8 +135,7 @@
                                }
                        }
 
-                       if (_debug)
-                               _lock.ReleaseMutex();
+                       _lock.ReleaseMutex();
 
                        _device.RenderState.Lighting = true;
                        _device.RenderState.AlphaBlendEnable = false;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]