[Mono-bugs] [Bug 649159] System.Threading.Monitor does not contain TryEnter(*, ref bool) methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 25 22:33:05 EDT 2010



Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |gnorton at novell.com

--- Comment #2 from Geoff Norton <gnorton at novell.com> 2010-10-26 02:33:04 UTC ---
Great work, a comment tho.   You probably want lockTaken = TryEnter (...) for
all variants.  Take the following example.

bool mybool = true;
Monitor.TryEnter (obj, 1, ref mybool);  // TryEnter fails
Console.WriteLine (mybool);

Your current patch would return true.

Configure bugmail: https://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