[Mono-bugs] [Bug 497848] ReaderWriterLock: ReaderLocks do not appear to block WriterLocks

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 24 13:08:25 EDT 2009


User gonzalo at novell.com added comment

Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |gonzalo at novell.com
         Resolution|                            |INVALID

--- Comment #1 from Gonzalo Paniagua Javier <gonzalo at novell.com>  2009-04-24 11:08:25 MDT ---
You have a race condition in your test.
In line 182 -> test1.Start (); and then test2.Start ().
You are assuming that the order of execution will be the same, but it's not.
Add a Thread.Sleep (200) in between them and the test will work just fine.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list