[Mono-bugs] [Bug 656353] New: ReaderWriterLockSlim don't lock if EnterWriteLock was called

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 29 14:17:38 EST 2010



           Summary: ReaderWriterLockSlim don't lock if EnterWriteLock was
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mj at netbits.at
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: Yes

Created an attachment (id=402553)
 --> (http://bugzilla.novell.com/attachment.cgi?id=402553)

Description of Problem:

I create 2 threads in one class
The thread number 1 starts and call EnterWriteLock. Now he wait 2sec befor call
The thread number 2 starts and call EnterReadlock and ExitReadLock any 100ms.

The thread number 2 "can" call EnterReadLock and ExitReadLock if thread number
1 is enterd in EnterWriteLock. 

I have add my testapplication. 

This is only with "LockRecursionPolicy.SupportsRecursion"!!!

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